Accidentally hit the "post" button... 

I also came up with an optimization of the algorithm for 
String.prototype.startsWith() that basically, after the check that the search 
string is longer than the instance string plus the offset, it is simpler and 
likely quicker to compare it to the equal length substring than to compare each 
character, starting at the offset, unless the check is coded in C or possibly 
C++. 

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

Reply via email to