Comment #6 on issue 1662 by [email protected]: Excessive overhead of String.replace(/a/g,'b')
http://code.google.com/p/v8/issues/detail?id=1662

$ ./d8 --prof test-d8.js
started: String.replace performance test
1mln char array composed in 35ms
array joined in 4ms
1mln symbol string: all symbols replaced in 87ms
too smart optimizations excluded 1000000 1000000 1000000


$ svn up
At revision 9145.



 [C++]:
   ticks  total  nonlib   name
25 16.3% 16.3% v8::internal::RegExpImpl::AtomExec(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::JSArray>) 10 6.5% 6.5% v8::internal::CompiledReplacement::Apply(v8::internal::ReplacementStringBuilder*, int, int, v8::internal::Handle<v8::internal::JSArray>)
     10    6.5%    6.5%  memcpy


Attachments:
        v8.log.gz  13.1 KB

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

Reply via email to