Re: qsort (was Re: Solaris)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: qsort (was Re: Solaris)
Дата
Msg-id 19660.1051676560@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: qsort (was Re: Solaris)  (dalgoda@ix.netcom.com (Mike Castle))
Список pgsql-general
dalgoda@ix.netcom.com (Mike Castle) writes:
> What about --with-pg-qsort (that defaults to use for currently known
> systems) with a test program people could run if they want?

I'd lean to "--with-pg-qsort" forcing the BSD qsort, "--without-pg-qsort"
forcing the native qsort, and if you don't say either then you get a
choice based on which OS you are running.  (Not sure how hard this is
to do in the autoconf structure, but if we can do it, it seems like the
right user interface.)

> In that case, would counting the calls to the compare function be the
> appropriate measurement (I'd think either wall or system time would vary
> too widely).

I'd trust overall time measurements way more than call counts.
Obviously it's up to the user to hold overall system load and suchlike
outside factors constant while conducting the tests --- but measuring
any single component like comparison-function calls is just asking to be
misled.

            regards, tom lane


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: qsort (was Re: Solaris)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Optimizer not using index on 120M row table