Re: [PATCH] backend: compare word-at-a-time in bcTruelen

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: [PATCH] backend: compare word-at-a-time in bcTruelen
Дата
Msg-id 80F3A08D-54AC-4E6B-AAF9-D64F14FD324C@hi-media.com
обсуждение исходный текст
Ответ на Re: [PATCH] backend: compare word-at-a-time in bcTruelen  (Jeremy Kerr <jk@ozlabs.org>)
Ответы Re: [PATCH] backend: compare word-at-a-time in bcTruelen  (tomas@tuxteam.de)
Список pgsql-hackers
Le 26 juin 09 à 14:47, Jeremy Kerr a écrit :
> For the new function to be faster, we need to know that there are more
> than 6 (on average, depending on alignment) trailing spaces.

It's becoming somewhat tricky, but maybe the test to do for the
optimisation to get used is n >= threshold && str[n-6] == 0x20, àla
Boyer/Moore?

I call it tricky because you could have a space here which isn't
followed by spaces, but still, if it's not a space here, you're saying
we should not even try the optimisation.

--
dim

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: gettext version problem exposed by buildfarm failures on "canary"
Следующее
От: tomas@tuxteam.de
Дата:
Сообщение: Re: [PATCH] backend: compare word-at-a-time in bcTruelen