[erlang-bugs] Re: UTF8 string handling in different erlang:*** functions
Paulo Sérgio Almeida
Tue Mar 29 16:34:22 CEST 2011
On 3/29/11 3:10 PM, Nico Kruber wrote:
>> 1000000 iterations of "erlang:term_to_binary/1" took 0.02946s:
>> 1000000 iterations of "unicode:characters_to_binary/1" took 0.667519s:
> -> looks like I should chose erlang:term_to_binary/1 since at least on my
> machine is is around twice as fast.
It's not twice but 20 times as fast. Amazing. Even though it should be
slower, this slower is surprising.
More information about the erlang-bugs