Quote Originally Posted by kleinma View Post
John, out of curiosity, what to your knowledge gets optimized by the compiler in the different scenarios?
Hmmm... I don't actually know. I just read that somewhere reputable some time ago, but never investigated further.

One point to consider with your testing: did you compile with optimisations enabled? Remember that optimisations are disabled by default for a Debug build.