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

Issue 6006: Faster sort.... (Closed)

Created:
12 years, 2 months ago by olehougaard
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Faster sort. Using insertion sort below a certain threshold to give faster sorting of arrays (esp. short ones). Committed: http://code.google.com/p/v8/source/detail?r=395

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -1 line) Patch
M src/array.js View 2 chunks +36 lines, -1 line 2 comments Download

Messages

Total messages: 2 (0 generated)
olehougaard
12 years, 2 months ago (2008-09-30 09:36:42 UTC) #1
Christian Plesner Hansen
12 years, 2 months ago (2008-09-30 09:50:56 UTC) #2
There's a bit of odd code style and a possible +/-1.  Otherwise lgtm.

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

http://codereview.chromium.org/6006/diff/1/2#newcode673
Line 673: for(var i = from + 1; i < to; i++) {
There should be a space between 'for' and '('.

http://codereview.chromium.org/6006/diff/1/2#newcode689
Line 689: max = mid;
I'm not 100% sure but I think this should be max = mid - 1.

Powered by Google App Engine
This is Rietveld 408576698