Re: [GENERAL] Creation of tsearch2 index is very slow

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] Creation of tsearch2 index is very slow
Дата
Msg-id 6111.1137797436@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] Creation of tsearch2 index is very slow  (Ron <rjpeace@earthlink.net>)
Ответы Re: [GENERAL] Creation of tsearch2 index is very slow  ("Steinar H. Gunderson" <sgunderson@bigfoot.com>)
Re: [GENERAL] Creation of tsearch2 index is very slow  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-performance
Ron <rjpeace@earthlink.net> writes:
> For an even more extreme speedup, don't most modern CPUs have an asm
> instruction that counts the bits (un)set (AKA "population counting")
> in various size entities (4b, 8b, 16b, 32b, 64b, and 128b for 64b
> CPUs with SWAR instructions)?

Yeah, but fetching from a small constant table is pretty quick too;
I doubt it's worth getting involved in machine-specific assembly code
for this.  I'm much more interested in the idea of improving the
furthest-distance algorithm in gtsvector_picksplit --- if we can do
that, it'll probably drop the distance calculation down to the point
where it's not really worth the trouble to assembly-code it.

            regards, tom lane

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

Предыдущее
От: "Steinar H. Gunderson"
Дата:
Сообщение: Re: [GENERAL] Creation of tsearch2 index is very slow
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: [GENERAL] Creation of tsearch2 index is very slow