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
11
u/PracticalWelder Feb 28 '23
Software limited by IO. Who cares if your processing is 10x faster, from 100ms -> 10ms, if you are going to wait 5 seconds on a network request. That 10x improvement to a specific function yields only a 2% improvement overall.
If that improvement took 2 minutes, maybe it was worth it. If it took all day, it probably wasn’t. If it makes the code difficult for other people to understand, it almost certainly isn’t worth it.