[erlang-questions] refactoring a very large record

Ladislav Lenart lenartlad@REDACTED
Thu Oct 20 17:12:51 CEST 2011

On 20.10.2011 16:52, Michael Uvarov wrote:
>> Doesn't the record tuple keep pointers to each element and only updates changes the modified pointers on update?
> It is true only for long binaries.

Just to be crystal clear. On every update a whole new tuple
is created. In your case that means to allocate a tuple for
80 cells (pointers). The contents (pointers) of the unchanged
cells are copied from the old tuple and the modified ones
are set to new values.


Ladislav Lenart

More information about the erlang-questions mailing list