-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add one-pass parsing of ints/floats based on @c-blake's work
This uses @c-blake's code from nim-lang/Nim#16055 to avoid having to copy the string which we parse and instead directly parses a number into either an int or a string. Note that this implementation has some edge cases that break it. In particular a number that starts valid, but doesn't end as a valid number (which is technically ok, but will break our CSV parser, since our position in the memfile will *not* be on the next separator!).
- Loading branch information
Showing
1 changed file
with
124 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