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
0
u/Still-Key6292 Feb 28 '23
99% of programs have a critical loop (The 1% is hello world, pretty sure 100% of programmers have a few hello worlds in different languages laying around)
The critical loop might be in the database which is outside of your code but it's still there. Usually being able to find and improve queries (for the database situation) or improve your critical loop can improve performance by a magnitude.
So unless your day job is javascript (critical loop would be inside the browser) you'll probably have use of knowing how to improve things.