[Vm-dev] Object basicNew vs object shallowCopy

Eliot Miranda eliot.miranda at gmail.com
Sun Jul 31 12:45:30 UTC 2016


Hi Denis, Hi Levente,

> On Jul 31, 2016, at 3:41 AM, Levente Uzonyi <leves at caesar.elte.hu> wrote:
> 
> It can't be quicker than basicNew.

Depends. Decoding size and encoding header from the class receiver in basicNew might be slower than decoding size and encoding header from the instance receiver in shallowCopy.  But the difference should be small.

> It will be quicker than basicNew + manual copying of the fields.

Agreed.

> And yes, this is quite important to be quick along with the #copyFrom: primitive (168).

It's on the to do list then :-)

> Levente

_,,,^..^,,,_ (phone)


More information about the Vm-dev mailing list