The README example for W8202: Global name usage in a loop (loop-invariant-global-usage)
appears to be measuring the cost of dictionary lookup more than global-vs-local names.
From looking in the anti-patterns repository, I think it's just using the wrong code sample.
The README example for W8202: Global name usage in a loop (loop-invariant-global-usage) appears to be measuring the cost of dictionary lookup more than global-vs-local names. From looking in the anti-patterns repository, I think it's just using the wrong code sample.