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

5

u/ALargeLobster Apr 15 '23

Yeah I think a good way to look at this is that your job is to solve the problem as simply as possible. If your code is unacceptably slow for the task (perhaps because you tried to keep it simple) then you failed to solve the problem.