<div dir="ltr">On Fri, Aug 29, 2008 at 10:03 AM, Ulf Wiger (TN/EAB) <span dir="ltr"><<a href="mailto:ulf.wiger@ericsson.com">ulf.wiger@ericsson.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
BEAM already has the ability to do sharing-preserving copy:<br>
the garbage collector obviously does it. But the feature is<br>
not available to the lowly Erlang programmer.<br>
</blockquote><div><br>It is easy to preserve sharing if you are allowed to destroy the source term (as in the garbage collector).<br><br>Preserving sharing when copying a term (i.e. not destroying the source term) is harder and<br>
WILL be slower compared to not preserve sharing.<br><br>/Bjorn<br> </div></div>-- <br>Björn Gustavsson, Erlang/OTP, Ericsson AB<br>
</div>