Re: plenty code is confused about function level static

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: plenty code is confused about function level static
Дата
Msg-id 3b61f093-ce3c-4ab0-86bc-6727ef35bc5c@eisentraut.org
обсуждение исходный текст
Ответ на Re: plenty code is confused about function level static  ("Andrey M. Borodin" <x4mmm@yandex-team.ru>)
Список pgsql-hackers
On 18.04.24 10:43, Andrey M. Borodin wrote:
>> On 18 Apr 2024, at 02:39, Andres Freund <andres@anarazel.de> wrote:
>>
>> There are lots of places that could benefit from adding 'static
>> const'.
> 
> +1 for helping compiler.
> GCC has a -Wsuggest-attribute=const, we can count these warnings and threat increase as an error :)

This is different.  It's an attribute, not a qualifier, and it's for 
functions, not variables.  But it could undoubtedly also have a 
performance benefit.




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

Предыдущее
От: Andrei Lepikhov
Дата:
Сообщение: Re: POC: GROUP BY optimization
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: brininsert optimization opportunity