-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Milestone
Description
I'm parsing lots of CSV files where values are empty - i.e. just ,,,, columns in CSV.
System.Buffers.Text.Utf8Parser.TryParse will in this case simply return consumed=0
whereas csFastFloat in such case raises System.ArgumentException.
The problem is that in such case I have to either make additional checks before calling ParseFloat
or even handling exceptions which makes the code much slower.
I'd suggest to change the behaviour of functions accepting consumed to not raise exceptions in such cases,
but rather set consumed=0.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels