[erlang-questions] Erlang and Memory management
Pierpaolo Bernardi
olopierpa@REDACTED
Tue May 31 11:20:52 CEST 2011
On Tue, May 31, 2011 at 11:13, Roberto Ostinelli <roberto@REDACTED> wrote:
> 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?
This is explained here:
http://www.erlang.org/doc/efficiency_guide/binaryhandling.html#id58893
P.
More information about the erlang-questions
mailing list