r/cpp • u/Polarstrike • Mar 07 '24
What are common mistakes in C++ code that results in huge performance penalties?
As title, list some common mistakes that you have done/seen which lead to performance penalties.
234
Upvotes
View all comments
Show parent comment
34
u/borkgames Mar 07 '24
I recommend turning on all the Clang Tidy warnings. Very annoying, but tells you off for all that kind of stuff