Re: Single client performance on trivial SELECTs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Single client performance on trivial SELECTs
Дата
Msg-id 20664.1302815441@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Single client performance on trivial SELECTs  (Noah Misch <noah@leadboat.com>)
Ответы Re: Single client performance on trivial SELECTs  (Merlin Moncure <mmoncure@gmail.com>)
Re: Single client performance on trivial SELECTs  (Andres Freund <andres@anarazel.de>)
Re: Single client performance on trivial SELECTs  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
Noah Misch <noah@leadboat.com> writes:
> On Thu, Apr 14, 2011 at 11:15:00AM -0700, Robert Haas wrote:
>> It shouldn't be
>> terribly difficult to come up with some kind of hash function based
>> on, say, the first two characters of the keyword that would be a lot
>> faster than what we're doing now.

> I'd look at `gperf', which generates code for this from your keyword list.

FWIW, mysql used to use gperf for this purpose, but they've abandoned it
in favor of some homegrown hashing scheme.  I don't know exactly why,
but I wonder if it was for licensing reasons.  gperf itself is GPL, and
I don't see any disclaimer in the docs saying that its output isn't.
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: WIP: Allow SQL-language functions to reference parameters by parameter name
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Single client performance on trivial SELECTs