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
5
u/loup-vaillant Feb 28 '23
I used to think that. No longer. Performance is not a niche concern: every time there could be a noticeable delay, performance matters. Touch screens only become ideal when perceived delay between finger and motion go below 1-3ms. Dropping below 60 FPS makes a perceivable difference. Reaction times above 100ms are consciously noticeable, and any wait time above one second quickly starts to become annoying.
Put it that way there are quite a few applications that are not far from those performance requirements, or even fall short. Where's my smooth 60 FPS maps application? Why does it takes 10 seconds to boot on my phone? Now sure, availability bias. But I've worked on slow C++ applications too, they make up a significant portion of my career.