[erlang-questions] term_to_binary and record improvements
Bjorn Gustavsson
bgustavsson@REDACTED
Fri Aug 29 10:38:27 CEST 2008
On Fri, Aug 29, 2008 at 10:03 AM, Ulf Wiger (TN/EAB) <ulf.wiger@REDACTED
> wrote:
>
> 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.
/Bjorn
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080829/573f9b1c/attachment.htm>
More information about the erlang-questions
mailing list