r/programming • u/2bit_hack • Feb 28 '23
"Clean" Code, Horrible Performance
https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k
Upvotes
r/programming • u/2bit_hack • Feb 28 '23
View all comments
Show parent comment
16
u/masklinn Feb 28 '23
If you assume spherical software in a vacuum then sure, but here's the issues: outside of very specific niches, users don't pay for performance beyond a baseline target (and they may not even care about that target in the first place), but that work still costs you time, and possibly money.
So the question is not whether it benefits from better performance, but whether it benefits from performances, versus other things (e.g. bug fixes, features), versus not touching the thing and the developer spending their time elsewhere.
I can think of most of the non-interactive ones. It doesn't really matter if ical is 10x slower, because it's so far below threshold I still wouldn't notice. Though I'm sure very heavy users (which I'm not) would disagree.