r/programming • • May 25 '19

Making the obvious code fast

https://jackmott.github.io/programming/2016/07/22/making-obvious-fast.html
1.3k Upvotes

263 comments sorted by

View all comments

Show parent comments

2

u/talsit May 26 '19

10x slower also means 30 minutes (quick lunch) vs 3 minutes (very quick coffee break).

1

u/RICHUNCLEPENNYBAGS May 26 '19

If you're doing an operation enough times that you're doing 30 minutes' worth of a 3000ms operation at a time, by all means micro-optimize, but also at that point if you can reduce the asymptotic complexity of the code it'll make a much bigger difference.