-
Notifications
You must be signed in to change notification settings - Fork 10
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
enable SIMD when comparing to simd-json benchmarks #3
Comments
Thanks! There is a bench using it on the README:
basically, The background of this crate is jorgecarleitao/arrow2#1024 - the delay of number parsing came as a requirement from I like that this crate is forbid unsafe, but despite using it bringing a 50% improvement over |
Absolutely, and it works in non-simd-enabled environments, which is a big plus. Over in simd-lite/simd-json#218 we've been talking about having a fallback for cases where no SIMD acceleration is available perhaps I'm curious how you feel about implementing the value trait for the |
wow, I am humbled by this - that would be awesome! Note that this still does not support surrogates encoded strings. Need to spend some time to do that (and find a json with them). Sorry, not very familiar with the ecosystem - could you clarify which "value trait" you mean? |
Oh sorry, the value-trait is basically this repo. The idea is to allow users to have a trait that can represent different implementations for JSONesque values so libraries can be implemented w/o targeting a specific implementation. It basically offers all the functions needed to access, manipulate and traverse the datastructures. |
Got it. Thanks! How do you recommend? feature-flag |
That's the way I'd go ja 👍 |
Hi,
first of all, this is a really impressive creation I love the trick of delaying number parsing darn smart :D.
That said I would suggest enabling SIMD when comparing against
simd-json
, otherwise, it's a bit of a pointless comparison. The best way to do that in a non too CPU-dependent way is to useRUSTFLAGS="-C target-feature=+avx,+avx2,+sse4.2"
those features are present on all modern CPUs.The text was updated successfully, but these errors were encountered: