Status: New
Owner: ----
New issue 1662 by [email protected]: Excessive overhead of
String.replace(/a/g,'b')
http://code.google.com/p/v8/issues/detail?id=1662
Please check
http://groups.google.com/group/nodejs/browse_thread/thread/a760e89e94d219a2
and the attached testcase.
String.replace(/a/g,'b') has some issues with overhead; by my estimation 5%
of CPU cycles go into the "real" work while the rest is wasted for type
conversions, dispatching, referencing/dereferencing, temporary data
structures and such.
In particular, according to the built-in profiler, 43% of CPU is eaten by
RegExpImpl::AtomExec, which only does some dispatching and conversion.
Me shocked.
Attachments:
test-d8.js 572 bytes
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev