Kotlin / dataframe

Structured data processing in Kotlin
https://kotlin.github.io/dataframe/overview.html
Apache License 2.0
846 stars 63 forks source link

Fast double parser #935

Closed Jolanrensen closed 3 weeks ago

Jolanrensen commented 4 weeks ago

Fixes https://github.com/Kotlin/dataframe/issues/607

Created under csv umbrella issue: https://github.com/Kotlin/dataframe/issues/827

Introduces FastDoubleParser as optional alternative double parser. It can be enabled as experimental option (for now) in ParserOptions.

The configurable version of this double parser was created for us :) and the way I implemented it, it can solve some of the locale-fallback-issues we were facing before. Check the tests I created in this PR for more some examples.

It's also faster than NumberFormat!

FastDoubleParser is also used by Deephaven CSV, which helps with our new csv implementation.

Jolanrensen commented 3 weeks ago

Thanks for the review :) I'll merge it for now so I can continue with the csv parser