Comment #4 on issue 1662 by [email protected]: Excessive overhead of String.replace(/a/g,'b')
http://code.google.com/p/v8/issues/detail?id=1662
As you might see, replace() consumes CPU on par with "slow" join() in the 32bit version: 92 and 112ms. That is kinda strange, as replace() is C++ and slow join() is JavaScript. The "right" result should be much closer to that of the fast assembly join() in the 64bit version: 5ms.
-- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
