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.
231
Upvotes
View all comments
Show parent comment
125
u/SkoomaDentist Antimodern C++, Embedded, Audio Mar 07 '24
MFW when people on embedded forums mention that their project is compiled without optimizations "so the compiler doesn't break things" (iow their code is full of bugs).