r/cpp • u/Little-Reflection986 • Feb 16 '26
Favorite optimizations ??
I'd love to hear stories about people's best feats of optimization, or something small you are able to use often!
135
Upvotes
View all comments
25
u/cdb_11 Feb 16 '26
Packing things and comparing as a single 64-bit integer, for sorting.