(no title)
cakoose | 2 years ago
The `static` modifier in that context just means that the symbol is not exported, so other ".c" files can't access it.
cakoose | 2 years ago
The `static` modifier in that context just means that the symbol is not exported, so other ".c" files can't access it.
bourgeoismedia|2 years ago
Check out the generated assembly for this simple program, notice that kBase is folded even though it's not marked const: https://godbolt.org/z/h45vYo5x5
cakoose|2 years ago
But the Postgres mailing list is talking about 2000 global variables being a hurdle to multi-threading. I doubt they just didn't realize that most of them can be optimized into constants.