Cached for loop length. Micro perf adjustment
Merge pull request #1 from kyranjamie/master

Cached loop length. Micro perf adjustment