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

Jeff Schultz jws@REDACTED
Wed Oct 24 02:05:43 CEST 2012


On Tue, Oct 23, 2012 at 08:11:03AM -0700, Erik Pearson wrote:
> I used a simple thing like:

> 20> json:test_iter(json, test_bin_copy, [<<"hi, my name is erik">>], 1000).
> 232018.5614849188

> 23> json:test_iter(json, test_string_copy, ["hi, my name is erik"], 100000).
> 650732.3993154295

If you really did exactly this, you were copying a *one* element list,
not the 19 element list represented by "hi, my name is erik"!


    Jeff Schultz



More information about the erlang-questions mailing list