Neil Conway <[EMAIL PROTECTED]> 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 ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend