Re: Improve list manipulation in several places

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Improve list manipulation in several places
Дата
Msg-id e8101b84-7313-654b-1a3f-0cbd270180b7@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Improve list manipulation in several places  (Richard Guo <guofenglinux@gmail.com>)
Ответы Re: Improve list manipulation in several places  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Re: Improve list manipulation in several places  (Richard Guo <guofenglinux@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Allow Postgres to pick an unused port to listen
Следующее
От: Melih Mutlu
Дата:
Сообщение: Re: [PATCH] Reuse Workers and Replication Slots during Logical Replication