Parse delimited fields in Vector{UInt8}
representation of
strings. This library is an experiment which I found useful in my
own work. The API may change at any point without notice or
deprecations. See the docstrings and the unit tests for usage
information.
Benchmarks suggest that this can be significantly faster than working
with String
s, and most delimiters (eg ';', ',') and parsed
representations (eg digits, decimal dot) don't require working with
UTF8
in any case.
-
TextParse.jl, which is also fast and much more versatile and polished
-
Base.DateFormat
which is now amazingly fast, thanks to the great work in #18000, #15888, 19545
As of Oct 30, 2017, running on my Dell XPS 13 laptop with a Intel(R) Core(TM) i7-6560U CPU @ 2.20GHz
. (source)
parsing | ByteParsers | TextParse |
---|---|---|
"123456789;" as Int |
15 ns | 21 ns |
"19800101;" as Date |
29 ns | 65 ns |
"foobar;" as a String (view or equivalent) |
19 ns | 25 ns |
"foobar;" skipped until separator ; |
6 ns | n/a |