[erlang-questions] binary_to_integer/1 and binary_to_float/1 and friends

Max Lapshin max.lapshin@REDACTED
Mon Apr 30 19:54:18 CEST 2012


> defined in a macro) and there is an unnecessary conversion cost to list
> (although the cost is small since both binary and list are likely small).
>

Cost is not so small, because NIF binary_to_integer will create only
one object, when list_to_integer(binary_to_list()) will create many of
them. It is very important when you need to import LOTS of numbers
(read about my CSV parsing).



More information about the erlang-questions mailing list