From: | Nathan Bossart <nathan(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Refactor code for setting pg_popcount* function pointers. |
Date: | 2024-04-02 15:16:29 |
Message-ID: | E1rrfsC-00093j-W3@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Refactor code for setting pg_popcount* function pointers.
Presently, there are three copies of this code, and a proposed
follow-up patch would add more code to each copy. This commit
introduces a new inline function for this code and makes use of it
in the pg_popcount*_choose functions, thereby reducing code
duplication.
Author: Paul Amonson
Discussion: https://postgr.es/m/BL1PR11MB5304097DF7EA81D04C33F3D1DCA6A%40BL1PR11MB5304.namprd11.prod.outlook.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6687430c98f3bed1d4c5f85f05a230b0d4581a66
Modified Files
--------------
src/port/pg_bitutils.c | 37 +++++++++----------------------------
1 file changed, 9 insertions(+), 28 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Nathan Bossart | 2024-04-02 15:36:13 | pgsql: Avoid function call overhead of pg_popcount() in syslogger.c. |
Previous Message | Tom Lane | 2024-04-02 14:41:58 | pgsql: Unwind #if spaghetti in hmac_openssl.c a bit. |