Status: New
Owner: ----
Labels: Type-FeatureRequest Priority-Low
New issue 1738 by [email protected]: Store to array should be replaced
by push to array where possible.
http://code.google.com/p/v8/issues/detail?id=1738
When using fixed array as backing store
for(var i = 0; i < 100000; i++) array.push(i);
is a lot faster than
for(var i = 0; i < 100000; i++) array[i] = i;
The attached benchmark results in 695 us for the former and 1609 us for the
latter. Not sure though whether this has many use cases.
Attachments:
arraypush.js 779 bytes
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev