Re: Improve list manipulation in several places - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Improve list manipulation in several places
Date
Msg-id e8101b84-7313-654b-1a3f-0cbd270180b7@enterprisedb.com
Whole thread Raw
In response to Re: Improve list manipulation in several places  (Richard Guo <guofenglinux@gmail.com>)
Responses Re: Improve list manipulation in several places
Re: Improve list manipulation in several places
List pgsql-hackers
On 23.04.23 08:42, Richard Guo wrote:
> Thanks for the suggestion.  I've split the patch into two as attached.
> 0001 is just a minor simplification by replacing lfirst(list_head(list))
> with linitial(list).  0002 introduces new functions to reduce the
> movement of list elements in several places so as to gain performance
> improvement and benefit future callers.

These look sensible to me.  If you could show some numbers that support 
the claim that there is a performance advantage, it would be even more 
convincing.




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH] Allow Postgres to pick an unused port to listen
Next
From: Melih Mutlu
Date:
Subject: Re: [PATCH] Reuse Workers and Replication Slots during Logical Replication