It buys something when tested on large random arrays (25% speedup on one
sort-intensive test), but it seems to have some  bad worst-cases compared to
the existing quicksort (80% slowdown on another test!)
I'll try to see if it's due to badly picked pivots, or something else that I
can tweak.

On Fri, Dec 17, 2010 at 15:35, <[email protected]> wrote:

> 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?
>
>
> http://codereview.chromium.org/6004001/
>



-- 
Lasse R.H. Nielsen
[email protected]
'Faith without judgement merely degrades the spirit divine'
Google Denmark ApS - Frederiksborggade 20B, 1 sal - 1360 København K -
Denmark - CVR nr. 28 86 69 84

-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to