I use Python 2.7, Windows 7 64

Apparently Psyco doesn't work for Python 2.7.

Are there other alternatives?


Today's state of the art in Python compilation is PyPy. I don't have any information about whether it will work for you on your target platform.


I think there's no real alternative only using Python as psyco does (Pypy which is increasingly becoming the 'only Python' alternative doesn't support extension modules, so, right now, many of projects can't migrate, but if yours isn't one of those, it can be a nice approach)

If you can't use Pypy right now, after doing a profile session and confirming things can't be speed up anymore in plain Python, the path is usually one of:

  • c/c++ extension module (my personal favorite -- works on any platform and using boost::python makes this process pretty simple and straightforward, although if you don't know c/c++, this may not be so easy).

  • Cython (you usually have to change your program a bit so that it becomes fast in Cython, and the changes aren't really python code, but an extension of it)

  • Shed Skin (if it can cope with your program)

  • 链接地址: http://www.djcxy.com/p/56828.html

    上一篇: 动态装配和方法

    下一篇: 我使用Python 2.7,Windows 7 64