smf
smf copied to clipboard
Mark log and assertion functions with gnu::cold.
Macros like LOG_THROW_IF
can be used to check invariants in code that's executed often. They generate a lot of code, which can pollute the i-cache. Similarly for log statements.