Re: Which qsort is used
От | Neil Conway |
---|---|
Тема | Re: Which qsort is used |
Дата | |
Msg-id | 1134407746.9179.13.camel@localhost.localdomain обсуждение исходный текст |
Ответ на | Re: Which qsort is used (Bruce Momjian <pgman@candle.pha.pa.us>) |
Ответы |
Re: Which qsort is used
Re: Which qsort is used |
Список | pgsql-hackers |
On Mon, 2005-12-12 at 11:50 -0500, Bruce Momjian wrote: > Are you willing to say that we should always prefer pgport over glibc's > qsort()? glibc's qsort is actually implemented via merge sort. I'm not sure why the glibc folks chose to do that, but as a result, it's not surprising that BSD qsort beats it for typical inputs. Whether we should go to the trouble of second-guessing glibc is a separate question, though: it would be good to see some performance figures for real-world queries. 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 -Neil
В списке pgsql-hackers по дате отправления: