Thread
:
Making Python faster (for fmms initially)
View Single Post
Khertan
2010-04-23 , 12:31
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#
26
Also :
- Avoid while loop when you can use a "for foo in foo_list"
- use xrange instead of range (removed in python 3 so it s not really a good idea for compatibility)
ah and of course, Read this :
http://wiki.python.org/moin/PythonSpeed/PerformanceTips
__________________
Benoît HERVIER, Khertan
KhtEditor - Sdist_Maemo - Khweeteur - PyPackager - KhtSimpleText - KhtNotes - KhtBMA - Wleux - and more ...
Quote & Reply
|
Khertan
View Public Profile
Send a private message to Khertan
Visit Khertan's homepage!
Find all posts by Khertan