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!
131
Upvotes
View all comments
Show parent comment
0
u/CocktailPerson Feb 17 '26
But we're talking about reusing memory.
If your data processing pipeline relies on reusing memory for performance, then it's a bad thing to provide a version of a sub-computation that implicitly copies the memory instead.