Updates:
        Status: WorkingAsIntended

Comment #2 on issue 3671 by [email protected]: No short-circuiting done when calling substr/substring when the same string value would be returned.
https://code.google.com/p/v8/issues/detail?id=3671

We do not create new strings if the result is trivial. The issue is that the point where we find out that the result is trivial is pretty late down the line, after calling into String.prototype.substr, which calls a code stub.

A lot of the overhead cannot be avoided though: as per spec, we need to coerce arguments. Some inlining may help, but I don't think this corner case justifies inlining a big piece of code every time.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to