-
-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(parser): speed up parsing numbers with
_
separators (#4259)
When parsing a number which contains `_` separators, rather than looping through the string once to remove separators, and then again to convert to an `f64`, do it all in a single loop. Co-authored-by: overlookmotel <[email protected]>
- Loading branch information
1 parent
b94540d
commit a8dc4f3
Showing
1 changed file
with
142 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters