In my opinion, there are two general classes of code optimizations: Those that can be ascertained simply by looking at the code and those that can be only ascertained by performance measurement. In the past I have spent a great deal of time trying to...