[erlang-questions] list vs binary performarnce, destructuring and consing

Motiejus Jakštys <>
Tue Oct 23 11:16:12 CEST 2012


On Tue, Oct 23, 2012 at 10:00 AM, Loïc Hoguin <> wrote:
> On 10/23/2012 10:50 AM, Motiejus Jakštys wrote:
>>
>> On Tue, Oct 23, 2012 at 9:07 AM, Martynas Pumputis <>
>> wrote:
>>>
> Please try with the module t compiled with the native option.
Hi,
does not change a lot.

> Also the answer to "why binary" is generally either "because unicode" or
> "because memory", not "lol speed". But it would be good if "lol speed" could
> be improved eventually.

Thanks for the explanation.

FYI, with "native" and some more tricks:
BIN: Min:  124959.0, Max:  152380.0, Mean:   80449.2, stdev:  53616.5
STR: Min:   40768.0, Max:  340067.0, Mean:  137522.3, stdev:   7299.9

Was interesting, though. Interestingly standard deviation of binary is
quite high.

-- 
Motiejus Jakštys



More information about the erlang-questions mailing list