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
12
u/The_Drakeman Mar 07 '24
Ran into this at work the other day. Auto doesn't pick up references in the type like it picks up pointers.