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

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Avoid multiple calls to memcpy (src/backend/access/index/genam.c)
Date: 2026-03-09 14:05:09
Message-ID: CAEudQApEfvhNT1fEPURzVcQH7G0A1ukh_ugoCGaErV6_dbndCQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Em seg., 9 de mar. de 2026 às 10:16, Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
escreveu:

> Hi.
>
> In the functions *systable_beginscan* and *systable_beginscan_ordered*,
> is possible a small optimization.
> The array *idxkey* can be constructed in one go with a single call to
> mempcy.
> The excess might not make much of a difference, but I think it's worth the
> effort.
>
> patch attached.
>
Someone asked me if O2 does not do the work.
Apparently not.

https://godbolt.org/z/h5dndz33x

best regards,
Ranier Vilela

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2026-03-09 14:12:29 Re: client_connection_check_interval default value
Previous Message Andres Freund 2026-03-09 14:01:53 Re: tid_blockno() and tid_offset() accessor functions