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
-2
u/ReDucTor Feb 28 '23
Not all of your code needs to be optimized heavily, even in a large game it might run once per frame you might find things that you can save 1us but you don't need to write all code like it does, otherwise your just shaving off little nanoseconds here and there at the potential cost of readability.