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 e052f6d1-a388-cc8c-6979-6e3e14d59ec2@enterprisedb.com
Whole thread Raw
In response to Improve list manipulation in several places  (Richard Guo <guofenglinux@gmail.com>)
Responses Re: Improve list manipulation in several places  (Richard Guo <guofenglinux@gmail.com>)
List pgsql-hackers
On 21.04.23 09:34, Richard Guo wrote:
> There was discussion in [1] about improvements to list manipulation in
> several places.  But since the discussion is not related to the topic in
> that thread, fork a new thread here and attach a patch to show my
> thoughts.
> 
> Some are just cosmetic changes by using macros.  The others should have
> performance gain from the avoidance of moving list entries.  But I doubt
> the performance gain can be noticed or measured, as currently there are
> only a few places affected by the change.  I still think the changes are
> worthwhile though, because it is very likely that future usage of the
> same scenario can benefit from these changes.

Can you explain the changes?

Maybe this patch should be split up.  It seems some of the changes are 
trivial simplifications using existing APIs, while others introduce new 
functions.




pgsql-hackers by date:

Previous
From: Melanie Plageman
Date:
Subject: Re: Commitfest 2023-03 starting tomorrow!
Next
From: Jacob Champion
Date:
Subject: Re: [PATCH] Add `verify-system` sslmode to use system CA pool for server cert