4 ms·
Python Speed/Performance Tips
http://wiki.python.org/moin/PythonSpeed/PerformanceTips#head-bcf69f4e2cacc9683c2f9a1f401e891cac50506f http://wiki.python.org/moin/PythonSpeed/PerformanceTips#head...
There are a few basic suggestions, it is a document anyone new to Python should read.
What have you done to improve performance? Personally I tend to use a unit test so I can setup a situation with a bunch of test data, and it will show me how long each option takes when I am trying to improve an algorithm.