[Vm-dev] Object basicNew vs object shallowCopy
dionisiydk at gmail.com
Sun Jul 31 08:57:28 UTC 2016
2016-07-30 7:48 GMT+02:00 Eliot Miranda <eliot.miranda at gmail.com>:
> 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?
I would not say that it is too much critical but it could improve some
prototype based frameworks where objects are created by cloning.
What you expect from optimized version performance? Will it be faster than
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev