[erlang-questions] term_to_binary and record improvements
Fri Aug 29 10:38:27 CEST 2008
On Fri, Aug 29, 2008 at 10:03 AM, Ulf Wiger (TN/EAB) <
> BEAM already has the ability to do sharing-preserving copy:
> the garbage collector obviously does it. But the feature is
> not available to the lowly Erlang programmer.
It is easy to preserve sharing if you are allowed to destroy the source term
(as in the garbage collector).
Preserving sharing when copying a term (i.e. not destroying the source term)
is harder and
WILL be slower compared to not preserve sharing.
Björn Gustavsson, Erlang/OTP, Ericsson AB
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions