[erlang-questions] list vs binary performarnce, destructuring and consing
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).
> 23> json:test_iter(json, test_string_copy, ["hi, my name is erik"], 100000).
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"!
More information about the erlang-questions