25 ms·
Eh, one of the standard performance tips for hot loops is to store everything relevant, including functions, in local variables because the interpreter looks in
by adrianN 9y ago
Eh, one of the standard performance tips for hot loops is to store everything relevant, including functions, in local variables because the interpreter looks in the local dictionary first. The last time I optimized Python code that made a significant difference.