Using the parse-evaluate pattern for high-performance calculations in a loop with a changing variable.