2 ms·
The Python Performance Tips [1] basically says this, along with many other helpful hints when trying to squeeze performance. They all boil down to: In a tight l
by nomel 8y ago
The Python Performance Tips [1] basically says this, along with many other helpful hints when trying to squeeze performance. They all boil down to: In a tight loop, don't do anything that triggers a lookup or function call.
[1] https://wiki.python.org/moin/PythonSpeed/PerformanceTips#Data_Aggregation https://wiki.python.org/moin/PythonSpeed/PerformanceTips#Dat...