Re: Avoid multiple calls to memcpy (src/backend/access/index/genam.c)

Ranier Vilela <ranier.vf@gmail.com>

From: Ranier Vilela <ranier.vf@gmail.com>
To: lakshmi <lakshmigcdac@gmail.com>
Cc: Bryan Green <dbryan.green@gmail.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2026-03-20T10:58:11Z
Lists: pgsql-hackers
Hi.

Em sex., 20 de mar. de 2026 às 06:50, lakshmi <lakshmigcdac@gmail.com>
escreveu:

> Hi,
>
> I tried this change on PostgreSQL (19devel) and ran a few simple tests
> using pgbench to see how it behaves in practice.
>
> I used 10 clients and 4 threads and ran each test for 60 seconds.
>
> From my runs, the original version was giving around ~663 TPS with ~15.07
> ms latency.
> With the patched version, I observed TPS in the range of ~638–657,
> averaging around ~648 TPS, with latency slightly higher (~15.2–15.6 ms).
>
Thanks for the benchmark.
Could you share the tests and the environment?
compiler
OS
etc.

best regards,
Ranier Vilela