You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
right now we use recognize_float then call .parse::<f64>() on the recognized input, which means the data is parsed twice. It is necessary because parse() assumes it has the full input, and will not return remaining input data if there is some after the number. This is the main reason for serde being faster than nom on JSON benchmarks: serde constructs the number as it is parsing it.
We need a float parser that does that.
The text was updated successfully, but these errors were encountered:
right now we use
recognize_float
then call.parse::<f64>()
on the recognized input, which means the data is parsed twice. It is necessary becauseparse()
assumes it has the full input, and will not return remaining input data if there is some after the number. This is the main reason for serde being faster than nom on JSON benchmarks: serde constructs the number as it is parsing it.We need a float parser that does that.
The text was updated successfully, but these errors were encountered: