We sometimes fall into the trap of thinking that performance comes from complicated data structures, layers of caching, and other fancy optimizations. But many times, all that's required is to do less work, and I often find that writing the simplest code I can is sufficient to accomplish that.
There are only three optimizations: Do less. Do it less often. Do it faster. The largest gains come from 1, but we spend all our time on 3. -- @creachadair twitter
Ch 16