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.