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

Issue 519061: Improve performance of Array.prototype.join and String.prototype.substring... (Closed)

Created:
10 years, 11 months ago by Kasper Lund
Modified:
9 years, 7 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Improve performance of Array.prototype.join and String.prototype.substring by tweaking the JavaScript implementation of these functions. Committed: http://code.google.com/p/v8/source/detail?r=3545

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -76 lines) Patch
M src/array.js View 12 chunks +38 lines, -34 lines 1 comment Download
M src/macros.py View 1 chunk +2 lines, -1 line 0 comments Download
M src/math.js View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime.h View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime.cc View 1 chunk +7 lines, -8 lines 0 comments Download
M src/runtime.js View 1 chunk +1 line, -1 line 0 comments Download
M src/string.js View 4 chunks +25 lines, -28 lines 0 comments Download
M test/mjsunit/fuzz-natives.js View 2 chunks +6 lines, -2 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
Kasper Lund
10 years, 11 months ago (2010-01-06 13:25:48 UTC) #1
Erik Corry
10 years, 11 months ago (2010-01-06 14:03:57 UTC) #2
LGTM

http://codereview.chromium.org/519061/diff/1/7
File src/array.js (right):

http://codereview.chromium.org/519061/diff/1/7#newcode113
src/array.js:113: if (UseSparseVariant(array, length, is_array) &&
(separator.length == 0)) {
I don't think the extra () around separator.length == 0 really add anything
here.

http://codereview.chromium.org/519061/diff/1/2
File test/mjsunit/fuzz-natives.js (right):

http://codereview.chromium.org/519061/diff/1/2#newcode100
test/mjsunit/fuzz-natives.js:100: // may lead to out-of-memory.
This is somehow unsatisfactory.

Powered by Google App Engine
This is Rietveld 408576698