> Hello,
>
> You can use the erts_debug:size(Term) and erts_debug:flat_size(Term)
> functions. They are somewhat
> documented here: http://www.erlang.org/doc/efficiency_guide/processes.html .
> Note that the returned
> value is in words and not bytes (see erlang:system_info(wordsize). ).
>
> Zoltan.
>
Zachary,
Most interesting, but I'm a bit confused by what its reporting:
1> erts_debug:size("stuff") * erlang:system_info(wordsize).
80
2> size(term_to_binary("stuff")).
9
Is it really using 80 bytes internally to represent that?
Paul Davis