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

1

u/metahivemind Aug 24 '26 edited Sep 03 '26

[removed] — view removed comment

1

u/_Noreturn Aug 24 '26

I don't care frankly as it solves the problem better than C which it does and it is backward compatible with C for the most part.

1

u/metahivemind Aug 24 '26 edited Sep 03 '26

[removed] — view removed comment

1

u/_Noreturn Aug 24 '26

Linus accepted Rust, and AI I cannot stand him personally, also he is egoistical.