[erlang-questions] Question about implementation

Max Lapshin max.lapshin@REDACTED
Mon Sep 10 18:14:22 CEST 2012


On Mon, Sep 10, 2012 at 8:08 PM, Lukas Larsson
<lukas@REDACTED> wrote:
> Hello,
>
> Only the tuple which is the record and the immidiates (i.e. small int,
> atom, pid, ref etc) will be copied. All other parts use pointers
> internally and the same pointers will be copied into the correct
> places within the tuple. So in this case a new 6 word memory block
> will be created and filled with the atom undefined and finally the new
> counter.
>

Thank you!


It is right what I wanted to hear. No deep copy, only reallocation of
top-level tuple.



More information about the erlang-questions mailing list