3 ms·
These are great when you're worried about performant code: http://docs.python.org/library/profile.html http://docs.python.org/library/profile.html http://wiki.
by hartror 16y ago
These are great when you're worried about performant code:
http://docs.python.org/library/profile.html http://docs.python.org/library/profile.html
http://wiki.python.org/moin/PythonSpeed/PerformanceTips http://wiki.python.org/moin/PythonSpeed/PerformanceTips
- StavrosK 16y agoYep, they won't speed your code up 50 times, though.
- hartror 16y agoI am yet to be sold on using Cython or it's ilk but it is philosophical/personal preference thing rather than a commentary on the quality or usefulness of these projects. As I have no trouble switching code to C++ and integrating it with python these projects don't offer me the same thing as a coder with less C++ experience. As an aside some simple coding changes will allow Psyco to do much of the by hand optimisations that Cython gives you. Not all and it is easy for another coder to come along and ruin everything. All it takes is some understanding of how Psyco performs its magic.
- cdavid 16y agoPsyco does not work on 64 bits, which makes it nearly useless for most servers-oriented kind of work