Re: plenty code is confused about function level static

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: plenty code is confused about function level static
Дата
Msg-id e494aa10-a6ce-4d0f-890d-86ae3e4f8530@eisentraut.org
обсуждение исходный текст
Ответ на plenty code is confused about function level static  (Andres Freund <andres@anarazel.de>)
Ответы Re: plenty code is confused about function level static  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On 17.04.24 23:39, Andres Freund wrote:
> Is there some reason we went for this pattern in a fair number of places? I
> assume it's mostly copy-pasta, but...

Right.  I don't think it is commonly understood that adding const 
qualifiers can help compiler optimization, and it's difficult to 
systematically check for omissions or verify the optimization effects. 
So I think we just have to keep trying to do our best manually for now.

> Attached are fixes for struct option and a few more occurrences I've found
> with a bit of grepping.

These look good to me.




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: fix tablespace handling in pg_combinebackup
Следующее
От: "Andrey M. Borodin"
Дата:
Сообщение: Re: plenty code is confused about function level static