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(-)

Reply via email to