in reply to Performance question

If you declare a variable inside a loop that's not affected by the variance of the loop--by a loop variable or whatnot--I believe the optimizer will take the declaration/definition of that variable outside of the loop. I've read this somewhere, but I can't remember where, unfortunately.