DescriptionMake Script.prototype.nameOrSourceURL use indexOf search first before trying to match with a RegExp.
This should use Boyer-Moore search with a long string, which is potentially
faster than RegExp search.
The target string is typically, but not guaranteed, at the end of the
source, so for long sources, there will be a lot of characters to skip.
Committed: http://code.google.com/p/v8/source/detail?r=7263
Patch Set 1 #
Total comments: 1
Patch Set 2 : Address review comment. #Messages
Total messages: 2 (0 generated)
|