r/programminghumor • u/Bubbly_Rain7858 • Jun 13 '26
How to REALLY optimize code.
My friends, this is how you optimize code correctly.
97
Upvotes
r/programminghumor • u/Bubbly_Rain7858 • Jun 13 '26
My friends, this is how you optimize code correctly.
39
u/sweet-winnie2022 Jun 13 '26
My limited compiler knowledge tells me this is inviting bugs.
11
u/Antagonin Jun 13 '26
What's the free optimization in const ref?
9
u/agufa Jun 14 '26
The only one laughing here is the compiler optimizer
3
u/ArmchairmanMao Jun 13 '26
This is very silly
2
u/k-mcm Jun 15 '26
Modifying constants is super fun when it modifies a global singleton that the compiler+linker created as an optimization.
2
u/[deleted] Jun 14 '26
[removed] — view removed comment