Re: qsort, once again

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: qsort, once again
Дата
Msg-id 19857.1142973455@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: qsort, once again  (Greg Stark <gsstark@mit.edu>)
Ответы Re: qsort, once again  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> That looks better both on average and in the worst case. Are the time
> constants that much worse that the merge sort still takes longer?

Keep in mind that this is only counting the number of
comparison-function calls; it's not accounting for any other effects.
In particular, for a large sort operation quicksort might win because of
its more cache-friendly memory access patterns.

The whole question of our qsort vs the system library's qsort probably
needs to be revisited, however, now that we've identified and fixed this
particular performance issue.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [GENERAL] A real currency type
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [GENERAL] A real currency type