Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Issue 607503004: Add a fast case for one-element arrays in ArrayJoin (Closed)

Created:
6 years, 2 months ago by fmeawad
Modified:
6 years, 2 months ago
CC:
v8-dev, tonyg, arv (Not doing code reviews)
Project:
v8
Visibility:
Public.

Description

Add a fast case for one-element arrays in ArrayJoin This case handles all one-element arrays that were not handled by _FastOneByteArrayJoin BUG= R=yangguo@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=24334

Patch Set 1 #

Patch Set 2 : Move the fast path below FastOneByteArrayJoin and add cases for numbers and booleans #

Patch Set 3 : Move the fast path below FastOneByteArrayJoin and add cases for numbers and booleans (last patch fi… #

Patch Set 4 : remove accidently added line #

Total comments: 2

Patch Set 5 : Add all one element arrays #

Total comments: 5

Patch Set 6 : array[0] -> e #

Patch Set 7 : Remove cases handled properly by NonStringToString #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M src/array.js View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (2 generated)
fmeawad
PTAL.
6 years, 2 months ago (2014-09-26 00:52:12 UTC) #2
fmeawad
6 years, 2 months ago (2014-09-26 00:52:34 UTC) #3
fmeawad
On 2014/09/26 00:52:34, fmeawad-cr wrote: A micro-benchmark that motivates adding the fast path is for ...
6 years, 2 months ago (2014-09-26 18:18:43 UTC) #4
arv (Not doing code reviews)
On 2014/09/26 18:18:43, fmeawad-cr wrote: > On 2014/09/26 00:52:34, fmeawad-cr wrote: > > A micro-benchmark ...
6 years, 2 months ago (2014-09-29 18:42:13 UTC) #5
fmeawad
Thanks arv@ for the extra test cases. I moved the added fast path below the ...
6 years, 2 months ago (2014-09-29 21:27:09 UTC) #6
fmeawad
Minor calculations error ['Do Something ' + i].join(''); 4.424 0.444 (-89.91%) [42].join(''); 4.6 0.377 (-91.81%) ...
6 years, 2 months ago (2014-09-29 21:35:04 UTC) #7
arv (Not doing code reviews)
-1% for the common case but ~10x improvement for the edge case. I think that ...
6 years, 2 months ago (2014-09-29 22:09:42 UTC) #9
fmeawad
PTAL. https://codereview.chromium.org/607503004/diff/60001/src/array.js File src/array.js (right): https://codereview.chromium.org/607503004/diff/60001/src/array.js#newcode383 src/array.js:383: var e = array[0]; On 2014/09/29 22:09:42, arv ...
6 years, 2 months ago (2014-09-29 23:37:47 UTC) #10
Yang
I was able to observe the 30% improvement, but not the 10x improvement you wrote ...
6 years, 2 months ago (2014-09-30 08:41:40 UTC) #11
fmeawad
> I was able to observe the 30% improvement, but not the 10x improvement you ...
6 years, 2 months ago (2014-09-30 14:49:53 UTC) #12
Yang
On 2014/09/30 14:49:53, fmeawad-cr wrote: > > I was able to observe the 30% improvement, ...
6 years, 2 months ago (2014-09-30 14:59:16 UTC) #13
fmeawad
PTAL. https://codereview.chromium.org/607503004/diff/80001/src/array.js File src/array.js (right): https://codereview.chromium.org/607503004/diff/80001/src/array.js#newcode386 src/array.js:386: if (IS_NUMBER(e)) return %_NumberToString(e); On 2014/09/30 14:49:52, fmeawad-cr ...
6 years, 2 months ago (2014-09-30 14:59:41 UTC) #14
Yang
Committed patchset #7 (id:120001) manually as 24334 (presubmit successful).
6 years, 2 months ago (2014-09-30 15:07:30 UTC) #15
arv (Not doing code reviews)
6 years, 2 months ago (2014-09-30 15:38:39 UTC) #16
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698