Mark log and assertion functions with gnu::cold.
duarten opened this issue · comments
Duarte Nunes commented
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.