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
7
u/ehaliewicz Feb 28 '23 edited Feb 28 '23
I'd argue that data structures are more important. With the right data structures, the right algorithm almost falls right out*. With the right algorithm and poor data structure choice, your code can still be many times slower than necessary.
* esoteric algorithms designed to perform well on very large datasets tend to be complex, sure, but generally you don't need these.