improving python performance by extension module (64bit)

Tim Wintle tim.wintle at teamrubber.com
Fri Jun 25 07:01:49 EDT 2010


On Thu, 2010-06-24 at 21:52 -0500, Peng Yu wrote: 
> http://psyco.sourceforge.net/
> 
> The above package can improve python program on 32 bit library. But I
> need to run on 64 bit library. Is there any other module that can help
> improving the performance of python on 64 bit?

As I understand it, Psycho isn't likely to get updated to 64-bit unless
someone decides to supply a significant amount of funding to the
developers.

If you've on a platform where compiling C is easy then I'd highly
recommending using Cython for objects that have to be high-performance:
http://cython.org/

(It generates C from slightly modified python code - I use it on various
64-bit *nix platforms)

Otherwise you could write a standard C extension.

The major native-code generation projects that I know of are Pypy and
Unladen Swallow, but neither of them are ready for use on 64-bit.


Tim




More information about the Python-list mailing list