pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid function call overhead of pg_popcount() in syslogger.c.
Date: Tue, 02 Apr 2024 15:36:13 +0000
Message-ID: <E1rrgBI-0009Cq-Tu@gemulon.postgresql.org> (raw)

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



Message-ID: <E1rrgBI-0009Cq-Tu@gemulon.postgresql.org>
Permalink:  ../E1rrgBI-0009Cq-Tu@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rrgBI-0009Cq-Tu@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Avoid function call overhead of pg_popcount() in syslogger.c.
  In-Reply-To: <E1rrgBI-0009Cq-Tu@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox