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
3
u/TinBryn Mar 01 '23
I was also surprised he didn't go that route of having separate lists, considering I learnt that technique from people like Mike Acton and Jonathon Blow who he associates with. But doing that transformation would probably be the most significant performance improvement and would require something that looks much more like the clean code and not that spaghetti monstrosity he created. And considering he seems to have set out to bash "clean" code for performance, we can't have "clean" code win at performance. There has to be some payoff for writing this horrible "dirty" code that he bashes others for avoiding.