[erlang-questions] : Tuple memory size

tsuraan tsuraan@REDACTED
Tue Feb 24 18:46:22 CET 2009


> 1> A = {1,2,3}.
> {1,2,3}
> 2> erts_debug:size(A).
> 4
> 3> erts_debug:flat_size(A).
> 4
> 4> erts_debug:size({A,A}).
> 7
> 5> erts_debug:flat_size({A,A}).
> 11
>
> Size is in words.

Very cool, thanks.



More information about the erlang-questions mailing list