[erlang-questions] Speed of CSV parsing: how to read 1M of lines in 1 second

Max Lapshin max.lapshin@REDACTED
Sat Mar 24 17:45:29 CET 2012


I'm trying to use file:read from erlang combined with compiled scanf
pattern or some regex. There are two ideas:
1) combine two binary:split will give double memory walking. I think it is
a good idea to parse memory once
2) intermediate creation of binaries for all those floats (12 millions of
them in this example) is also evil. Perhaps line parsing should be combined
with float extraction in the same manner as decode_packet does.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120324/830fe639/attachment.htm>


More information about the erlang-questions mailing list