Re: faster version of AllocSetFreeIndex for x86 architecture
В списке pgsql-hackers по дате отправления:
| От | Jeremy Kerr |
|---|---|
| Тема | Re: faster version of AllocSetFreeIndex for x86 architecture |
| Дата | |
| Msg-id | 200906030139.52998.jk@ozlabs.org обсуждение |
| Ответ на | faster version of AllocSetFreeIndex for x86 architecture (Atsushi Ogawa <a_ogawa@hi-ho.ne.jp>) |
| Ответы |
[PATCH 1/2] Add bit operations util header
[PATCH 2/2] Use fls() to find chunk set |
| Список | pgsql-hackers |
Hi,
> I made a faster version of AllocSetFreeIndex for x86 architecture.
Neat, I have a version for PowerPC too.
In order to prevent writing multiple copies of AllocSetFreeIndex, I
propose that we add a fls() function ("find last set"); this can be
defined in an architecture-independent manner (ie, shift mask & test in
a loop), and re-defined for arches that have faster ways of doing the
same (ie, cntlz instruction on powerpc).
We can then change AllocSetFreeIndex to use fls().
Patches coming...
Jeremy
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера