CSV Reading (rewrite in C?)

Please post code when posting benchmarks if possible. Julia calls into C for parsing e.g. Float32s.

Trying on master I get

julia> strs = string.(1:100*10^6);

julia> @time parse.(Float32, strs);;
 10.913384 seconds (9 allocations: 381.470 MiB)

(Master, and 1.0.1 does have improve performance for parsing Floats by KristofferC · Pull Request #27764 · JuliaLang/julia · GitHub which might explain why you get slower results).

For performance, don’t use globals. Fixing that this take (of course) just as long time as just parsing the strings.

1 Like