Avoid calling Config::__get() in a loop
Avoid calling Config::__get() in a loop

I was surprised to see the impact this minor optimization does have. In the example run I profiled Config::__get() was called about 88,000 times, and these calls accounted for about 4.6% of the total runtime.

With this optimization applied Config::__get() is now called 5,000 times, and these calls now account for 0.3% of the total runtime.

Yes, I'm talking total runtime. This means a run of 20 seconds total will be about a second faster.
stronk7/PHP_CodeSniffer,squizlabs/PHP_CodeSniffer,jrfnl/PHP_CodeSniffer,stronk7/PHP_CodeSniffer,stronk7/PHP_CodeSniffer,squizlabs/PHP_CodeSniffer,jrfnl/PHP_CodeSniffer,squizlabs/PHP_CodeSniffer,jrfnl/PHP_CodeSniffer