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

Issue 6004001: Implement an adaption of Dual-Pivot Quicksort for Array.prototype.sort.

Created:
10 years ago by Lasse Reichstein
Modified:
10 years ago
Reviewers:
Karl Klose
CC:
v8-dev, fschneider
Visibility:
Public.

Description

Implement an adaption of Dual-Pivot Quicksort for Array.prototype.sort.

Patch Set 1 #

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

Messages

Total messages: 2 (0 generated)
Lasse Reichstein
10 years ago (2010-12-17 14:18:38 UTC) #1
Karl Klose
10 years ago (2010-12-17 14:35:42 UTC) #2
LGTM

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

http://codereview.chromium.org/6004001/diff/1/src/array.js#newcode680
src/array.js:680: function DualPivotQuickSort(a, from, to, div) {
Why is the divider for the medians a variable? We only use the value 3, don't
we?

Powered by Google App Engine
This is Rietveld 408576698