[erlang-questions] Erlang and Memory management
Tue May 31 11:20:33 CEST 2011
31.05.2011 19:13, Roberto Ostinelli wrote:
> My question is: will this Binary term occupy 2 * memory space or is there
> some kind of pointer mechanism to handle it?
As I understand from binary.c, small binaries are kept on a process heap
(ERL_ONHEAP_BIN_LIMIT = 64), so they will likely be copied. Bigger
binaries are allocated on shared heap, so only a pointer will be copied.
Evgeniy Khramtsov, ProcessOne.
More information about the erlang-questions