<p><br>
On Mar 16, 2012 3:59 AM, "Jesper Louis Andersen" <<a href="mailto:jesper.louis.andersen@erlang-solutions.com">jesper.louis.andersen@erlang-solutions.com</a>> wrote:<br>
><br>
> On 3/15/12 12:55 AM, Jan Burse wrote:<br>
>><br>
>><br>
>> But the Java performance also surprised me. Especially since<br>
>> the code contains many new expressions. But rumors have<br>
>> it that new is just a pointer decrement in Java.<br>
>><br>
> It may be more than a rumor. Most GC'ed languages turn out to do something like that, and the allocation only costs for deallocation if you keep a reference to the allocated object.<br>
><br>
It becomes even better since copy collectors only need to copy and move live objects, not dead ones. So there's no deallocation cost for them. More details here in case you are interested:</p>
<p><a href="http://www.ibm.com/developerworks/java/library/j-jtp09275/index.html">http://www.ibm.com/developerworks/java/library/j-jtp09275/index.html</a></p>
<p>Regards, <br>
Edward</p>