Switch from fast_double_parser to fast_float #108
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First off, thanks for maintaining this library!
I'm trying to pitch in a bit to help and make sure things stay healthy.
It's my first time working with Cython, so I'll be a little slow to make changes.
This PR swaps the fast_double_parser for fast_float, per the deprecation warning cited in #83.
It all works cleanly except for a small number of tests regarding scientific notation.
I could use some input on how to push this over the finish line.
None of the
fast_float
behaviors matches what the JSON5 tests expect, and the one which is labeledjson_or_infnan
seems like the best fit for the spec in spirit.Right now, I'm seeing
pyjson5.loads(1e2.3)
return100
, which is definitely wrong.But I haven't yet figured out where the issue is. I would guess (from the above) that somehow it's truncating the data to
1e2
.