Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using SIMD? #241

Open
nk9 opened this issue May 25, 2024 · 1 comment
Open

Using SIMD? #241

nk9 opened this issue May 25, 2024 · 1 comment

Comments

@nk9
Copy link
Contributor

nk9 commented May 25, 2024

I see that SIMD instructions can be used to speed up reading JSON files in some cases. For example, there is the simd-json crate, although it's not the only choice. Sonic says that it uses SIMD instructions in particular to "parse the fractions of float numbers," which is something that a GeoJSON parser does constantly.

I don't see any discussion of SIMD in this repo at all, so I thought I'd ask whether this a worthwhile avenue to explore for a speedup. I see that we're using serde_json, which simd-json says it is compatible with. I haven't done any work to determine if this would actually speed things up, because I wanted first to ask if there was some reason it wouldn't be a good fit even if it was faster.

@michaelkirk
Copy link
Member

michaelkirk commented May 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants