Re:C++ Attribute: Likely, Unlikely
by UncleMeat on Sunday October 22, 2023 @01:13PM
(#37977169)
Yes, you could imagine a bunch of scenarios where this could hurt you. Imagine a compiler that outlines the rare branch in order to shrink the code size of the function so that the hot path has better icache performance. That function call you inserted is expensive.
[ Parent
| on HN ]
There are no comments on this comment yet.