Comment #2 on issue 903 by [email protected]: Array Concat with Non-Array Param Performance Issue
http://code.google.com/p/v8/issues/detail?id=903

Those operations aren't equivalent - concat() creates a new array, whereas push() modifies the original array. I don't see this as a particularly critical issue, but it seems like a ~2000% slowdown between [].concat(['foo']) and [].concat('foo') might indicate a candidate for some optimizations.

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to