in reply to Re: Slow at sorting?
in thread Slow at sorting?

Perl's sorting algorithm is a modified quicksort which chooses elements in a pattern which makes it fast on sorted data sets.

There are slow patterns, which is why Perl 5.8 will default to a mergesort. But the slow patterns are a lot harder to hit than just sorting the data.

Replies are listed 'Best First'.
Re(3): Slow at sorting?
by FoxtrotUniform (Prior) on Nov 22, 2001 at 02:39 UTC

    Out of curiosity, why mergesort over (for example) heapsort?

    --
    :wq
Re: Re (tilly) 2: Slow at sorting?
by shotgunefx (Parson) on Nov 22, 2001 at 02:15 UTC
    Thanks tilly. Didn't know that. Learn something new everyday.

    -Lee

    "To be civilized is to deny one's nature."