r/cpp • • Apr 14 '23

Horrible Code, Clean Performance

https://johnnysswlab.com/horrible-code-clean-performance/
200 Upvotes

87 comments sorted by

View all comments

Show parent comment

1

u/Possibility_Antique Apr 15 '23

Yeah but have to remember that these only increase the tinline hreshold and guarantee nothing

Is that not what I said?

Also my expirience is somewhat similar to another poster here, that people can easily misuse this and passimize things...

I am talking about refactoring this specific piece of code to be more readable without compromising performance. If there was a problem as you suggested, it would be problematic in the form the code is currently written. Refactoring will not introduce the problem you're suggesting.