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-09T13:16:20Z
Lists: pgsql-hackers
Attachments
- avoid-multiple-calls-to-memcpy-genam.patch (application/octet-stream) patch
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. best regards, Ranier Vilela