Avoid multiple calls to memcpy (src/backend/access/index/genam.c) - Mailing list pgsql-hackers

From Ranier Vilela
Subject Avoid multiple calls to memcpy (src/backend/access/index/genam.c)
Date
Msg-id CAEudQApbWon+3Eb9x4WW_D-JkSt2mvfx99dXu9VZ4AeCuTh=fw@mail.gmail.com
Whole thread
Responses Re: Avoid multiple calls to memcpy (src/backend/access/index/genam.c)
Re: Avoid multiple calls to memcpy (src/backend/access/index/genam.c)
List pgsql-hackers
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
Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Consider low startup cost in add_partial_path
Next
From: Daniel Gustafsson
Date:
Subject: Re: Simplifies checks (src/bin/pg_dump/pg_backup_archiver.c)