Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4133c1f

Browse files
Avoid function call overhead of pg_popcount() in syslogger.c.
Instead of calling the pg_popcount() function for a single byte, wecan look up the value in the pg_number_of_ones array.Discussion:https://postgr.es/m/20240401221117.GB2362108%40nathanxps13
1 parent6687430 commit4133c1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/postmaster/syslogger.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ process_pipe_input(char *logbuffer, int *bytes_in_logbuffer)
898898
if (p.nuls[0]=='\0'&&p.nuls[1]=='\0'&&
899899
p.len>0&&p.len <=PIPE_MAX_PAYLOAD&&
900900
p.pid!=0&&
901-
pg_popcount((char*)&dest_flags,1)==1)
901+
pg_number_of_ones[dest_flags]==1)
902902
{
903903
List*buffer_list;
904904
ListCell*cell;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp