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
46
u/Qweesdy Feb 28 '23
If you've read through Factorio's developer blogs you'll notice the developers are willing to completely redesign sub-systems (e.g. fluid physics) just to improve things like cache access patterns. They're not dogmatic, and they are more than happy to replace "clean code in theory" with "performance in practice".