-
Notifications
You must be signed in to change notification settings - Fork 83
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
Implement number parsing from simdjson v0.3.1 - second try #253
Implement number parsing from simdjson v0.3.1 - second try #253
Conversation
Codecov ReportBase: 82.60% // Head: 82.68% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #253 +/- ##
==========================================
+ Coverage 82.60% 82.68% +0.07%
==========================================
Files 34 35 +1
Lines 10623 10545 -78
==========================================
- Hits 8775 8719 -56
+ Misses 1848 1826 -22
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Really nice 👍, I like it, only thing is the |
This makes the interface similar to the "correct" number parsing, and avoid the duplication at "stage2".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Brilliant! Thank you :D
@Licenser so here is a comparison between the new version and the old one:
And running the perf file on main:
Versus this branch:
So yeah, it's slower, but not that much if you don't have a bunch of floats in the file. |
Ja looks good and original / approximate / faster behaviour is preserved via flag 👍 |
This PR introduces the more correct number parsing from simdjson, version
0.3.1
.The work is based on a previous PR from @ijl - #127
This PR includes a new feature flag to enable the behaviour prior to this:
approx-number-parsing
. Thanks @Licenser for the work on this.Another difference is that this includes the
128bit
feature for the new version.Closes #251
PS 1: I need to post the benchmarks. Going to do this tomorrow.
PS 2: I didn't change the docs/commentary, neither fix issues from clippy. I can do this as well tomorrow.