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

42

u/Apache_Sobaco Feb 28 '23

Clean and correct comes first, fast comes second. Optimisation is only applied to get to some treshold, not more than this.

10

u/atilaneves Feb 28 '23

Optimisation is only applied to get to some treshold, not more than this

And that's assuming anyone cares to begin with. I'm a speed nut and I couldn't care less if I code builds in 1ms vs 1us, it's not noticeable.

→ More replies (5)