<div dir="ltr"><div class="gmail_extra">Hi Eliot,</div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-30 7:48 GMT+02:00 Eliot Miranda <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2e8" class="a3s aXjCH m1563a59373a90058">    the difference us because basicNew[:] are implemented with machine code primitives whereas shallowCopy is an interpreter primitive and machine code primitives are much faster to invoke.  I could add a machine code shallowCopy primitive that would handle common cases and exclude the complex ones (CompiledMethod and Context, because they contain hidden JIT state that must not be copied).  How important is shallowCopy performance to you?<br></div></blockquote></div><div class="gmail_extra"><br></div>I would not say that it is too much critical but it could improve some prototype based frameworks where objects are created by cloning.</div><div class="gmail_extra"><br></div><div class="gmail_extra">What you expect from optimized version performance? Will it be faster than #basicNew?<br><br></div></div>