[Articles] Brad Abrams: The Bum Rap of foreach
Recursively follow all of the links in Brad Abrams article The Bum Rap of foreach and you will get a great education in both iteration and the evils and joys of micro-optimization. Regarding optimization, see "Rule #1" in The Rules of Optimization.