pgsql: Avoid function call overhead of pg_popcount() in syslogger.c. - Mailing list pgsql-committers

From Nathan Bossart
Subject pgsql: Avoid function call overhead of pg_popcount() in syslogger.c.
Date
Msg-id E1rrgBI-0009Cq-Tu@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Avoid function call overhead of pg_popcount() in syslogger.c.

Instead of calling the pg_popcount() function for a single byte, we
can look up the value in the pg_number_of_ones array.

Discussion: https://postgr.es/m/20240401221117.GB2362108%40nathanxps13

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4133c1f45c54f0e52b4bb758f67af78951930e43

Modified Files
--------------
src/backend/postmaster/syslogger.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Nathan Bossart
Date:
Subject: pgsql: Refactor code for setting pg_popcount* function pointers.
Next
From: Tom Lane
Date:
Subject: [MASSMAIL]pgsql: Avoid deadlock during orphan temp table removal.