On 2014/09/26 00:52:34, fmeawad-cr wrote:

A micro-benchmark that motivates adding the fast path is

for (var j = 0; j < 100000; j++){
  for(var i = 0; i < 100; i++) {
    new Array('Do Something ' + i).join('');
  }
}

where a consistent 30% speedup is observed.

Without the fast path, It attempts FastOneByteArrayJoin and fails since the
string is a CONS_ONE_BYTE_STRING_TYPE, then it goes in Join, where it fails the
Sparse Array check, then hits the one element fast case in Join.


https://codereview.chromium.org/607503004/

--
--
v8-dev mailing list
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to