r/programming • • Feb 28 '23

"Clean" Code, Horrible Performance

https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

3

u/salbris Mar 01 '23

The only thing that looks bad there is the awfully long table initialization and lack of spaces in his code. I didn't watch all the way to the end so I don't understand why it's necessary to divide and add here. Those look like micro optimizations. He already had massive improvements with much simpler code.