[erlang-questions] Erlang and Memory management

Roberto Ostinelli <>
Tue May 31 11:13:15 CEST 2011

Dear list,

I'd like to know some inner insights on how memory is handled in Erlang.

Let's say that I build up a Binary term() in a gen_server, which I store in
its state, and then send it over to another gen_server which will also store
this term into its state.

My question is: will this Binary term occupy 2 * memory space or is there
some kind of pointer mechanism to handle it?

Thank you,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110531/93e915cb/attachment.html>

More information about the erlang-questions mailing list