The most powerful optimization technique in any programmer's
toolbox is to do nothing.
This very Zen advice is true for several reasons. One is the
exponential effect of Moore's Law — the smartest, cheapest, and
way to collect performance gains is
to wait a few months for your target hardware to become more capable.
Given the cost ratio between hardware and programmer time, there are
almost always better things to do with your time than to optimize a
Another very constructive form of doing nothing is to not write
code. The program can't be slowed down by code that isn't there. It
can be slowed down by code that
less efficient than it could be — but that's a different