[erlang-questions] refactoring a very large record
Thu Oct 20 18:19:41 CEST 2011
On Thu, Oct 20, 2011 at 12:14:20PM -0400, Jachym Holecek wrote:
> And even if the analysis was feasible, updating values in-place means
> you're introducing forward pointers on the heap (or pointers from old
> generation to nursery even), which may complicate garbage collector.
Even better than that, if you have done the analysis correctly, then in
some cases, you could build the tuple on the stack, not the heap, and
thus avoid going to the heap entirely for very short lived structures.
More information about the erlang-questions