Re: Fix bank selection logic in SLRU

Поиск
Список
Период
Сортировка
От Andrey Borodin
Тема Re: Fix bank selection logic in SLRU
Дата
Msg-id CA2D0CC8-D2F3-42F8-AF32-8FB30D1FC93A@yandex-team.ru
обсуждение исходный текст
Ответ на Re: Fix bank selection logic in SLRU  (Yura Sokolov <y.sokolov@postgrespro.ru>)
Ответы Re: Fix bank selection logic in SLRU
Список pgsql-hackers

> On 19 Dec 2024, at 15:01, Yura Sokolov <y.sokolov@postgrespro.ru> wrote:
>
> - `&` takes 0.69ns
> - `mult-rec` takes 2.94ns
> - `%` takes 3.24ns.

Thanks, Yura, for benchmarks and off-list conversation.
I’ve reproduced similar numbers on my Apple M2.
I agree that additional 3-4ns are negligible in case of SLRU access.



+    bits16        nbanks;

Perhaps, it’s not bits anymore. Also, is 64K banks ought enough for everybody?


Best regards, Andrey Borodin.


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