3 ms·
I did a quick check of the implementation, am I wrong in thinking every primitive type is boxed ? If it is the case, i expect the performance to be pretty abys
by Raphael_Amiard 14y ago
I did a quick check of the implementation, am I wrong in thinking every primitive type is boxed ?
If it is the case, i expect the performance to be pretty abysmal. Do you have some data on that ?
- sebilasse 14y agoYes. Primitives are boxed. However method arguments are only boxed when needed, which makes it as fast as normal. In the methods internally are all using JS primitives (there are some left-overs where that's not the case yet). Wrapper objects are similarly fast as extending native JS types.
- Raphael_Amiard 14y agoOk thanks !