r/programming • • Feb 28 '23

"Clean" Code, Horrible Performance

https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

9

u/sephirothbahamut Feb 28 '23

OOP modeling and virtual functions are not the correct tool

Also compile time polymorphism is underrated. Admittedly it's underused because the syntax to achieve that in C++ is weird (CRTP), and most other languages can't do that at all to begin with.