Don't think in terms of making a slow piece of code run faster. Instead, think in terms of making it do less.