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
Show parent comment
3
u/sweetno Feb 16 '26
What tools do you use to investigate performance? You mention number of times cache lines move between cores and coherence traffic, is it really something you could measure? I keep reading about things like that and still have no clue how would you debug this in practice.