3 ms·
So stop using functions...got it.
by datavirtue 8y ago
So stop using functions...got it.
- nomel 8y agoThe 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...
- gnufx 8y agoWhen Python first appeared, the things I remember striking dynamic languages people were strange scoping, no "proper" GC, but particularly being designed to prevent efficient implementation. It was an opportunity to get research computing off Tcl, though.