Re: Which qsort is used - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Which qsort is used
Date
Msg-id 2373.1134427657@sss.pgh.pa.us
Whole thread Raw
In response to Re: Which qsort is used  (Neil Conway <neilc@samurai.com>)
Responses Re: Which qsort is used
Re: Which qsort is used
List pgsql-hackers
Neil Conway <neilc@samurai.com> writes:
> BTW, Luke Lonergan recently posted some performance results for a fairly
> efficient public domain implementation of qsort to the bizgres list:
> http://lists.pgfoundry.org/pipermail/bizgres-general/2005-December/000294.html

As those results suggest, there can be huge differences in sort
performance depending on whether the input is random, nearly sorted,
nearly reverse sorted, possesses many equal keys, etc.  It would be very
dangerous to say "implementation A is better than implementation B"
without having tested all those scenarios.  IIRC, the reason we reject
Solaris' qsort is not that it is so bad in the typical case, but that it
has some horrible corner-case behaviors.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Rod Taylor
Date:
Subject: Re: Something I don't understand with the use of schemas
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Something I don't understand with the use of schemas