Re: use SIMD in GetPrivateRefCountEntry() - Mailing list pgsql-hackers

From Andres Freund
Subject Re: use SIMD in GetPrivateRefCountEntry()
Date
Msg-id 9BE2DB7F-FFA4-4CE1-89AC-1D4039AED60D@anarazel.de
Whole thread Raw
In response to Re: use SIMD in GetPrivateRefCountEntry()  (Yura Sokolov <y.sokolov@postgrespro.ru>)
List pgsql-hackers
Hi,

On October 24, 2025 3:43:34 PM GMT+03:00, Yura Sokolov <y.sokolov@postgrespro.ru> wrote:
>03.10.2025 23:51, Nathan Bossart пишет:
>> Sorry for the noise.  I fixed x86-64 builds in v2.
>>
>
>Why not just use simplehash for private ref counts?
>Without separation on array and overflow parts.
>Just single damn simple hash table.

It's to expensive for common access patterns in my benchmarks. Buffer accesses are very very very common and hash
tableshave no spatial locality. 

Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.



pgsql-hackers by date:

Previous
From: Ranier Vilela
Date:
Subject: Re: Avoid resource leak (src/test/regress/pg_regress.c)
Next
From: Nazir Bilal Yavuz
Date:
Subject: ci: Improve OpenBSD core dump backtrace handling