Comment #13 on issue 1662 by [email protected]: Excessive overhead of
String.replace(/a/g,'b')
http://code.google.com/p/v8/issues/detail?id=1662
Please, don't take that personally. I am quite happy with the result.
My point was: in *this* particular case, a *perfect* implementation would
run on par with .join() because it does more or less the same amount of
work at the assembly level. But I do not presently have a plan how to make
it *that* perfect in the general case.
If I'll have some time, I'll try the trick Mr Reichstein suggested (also in
CompiledReplacement::Apply, where a polymorphic intermediate array is
built).
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev