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: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2026-03-09T14:05:09Z
Lists: pgsql-hackers
Em seg., 9 de mar. de 2026 às 10:16, Ranier Vilela <ranier.vf@gmail.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