r/programming • • Aug 22 '26

The unlikely Linux macro

https://rushed-reflections.bearblog.dev/an-unlikely-experiment/

Wrote a bit about the `unlikely` and `likely` macros in the Linux codebase. Great little exploration into tiny optimizations that everyone should know more about 😄

188 Upvotes

61 comments sorted by

View all comments

Show parent comment

0

u/BlindTreeFrog Aug 23 '26

along with a tip that "they can use this too!", they are inclined to slap it everywhere in their programs any time a branch has a hot path.

I've worked with those people. They are insufferable and actively held the project back through their jackassary.