cpython (merge 3.2 -> default): Remove references to psyco, which is mostly unmaintained and doesn't work with

http://hg.python.org/cpython/rev/06087f6890af changeset: 73833:06087f6890af parent: 73831:309f12301de2 parent: 73832:48a723092e1e user: Antoine Pitrou <solipsis@pitrou.net> date: Sat Dec 03 21:25:17 2011 +0100 summary: Remove references to psyco, which is mostly unmaintained and doesn't work with Python 3. files: Doc/faq/extending.rst | 8 +------- Doc/faq/programming.rst | 14 +++----------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/Doc/faq/extending.rst b/Doc/faq/extending.rst --- a/Doc/faq/extending.rst +++ b/Doc/faq/extending.rst @@ -37,13 +37,7 @@ There are a number of alternatives to writing your own C extensions, depending on what you're trying to do. -.. XXX make sure these all work; mention Cython - -If you need more speed, `Psyco <http://psyco.sourceforge.net/>`_ generates x86 -assembly code from Python bytecode. You can use Psyco to compile the most -time-critical functions in your code, and gain a significant improvement with -very little effort, as long as you're running on a machine with an -x86-compatible processor. +.. XXX make sure these all work `Cython <http://cython.org>`_ and its relative `Pyrex <http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/>`_ are compilers diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst --- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -121,19 +121,11 @@ That's a tough one, in general. There are many tricks to speed up Python code; consider rewriting parts in C as a last resort. -In some cases it's possible to automatically translate Python to C or x86 -assembly language, meaning that you don't have to modify your code to gain -increased speed. - -.. XXX seems to have overlap with other questions! - `Cython <http://cython.org>`_ and `Pyrex <http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/>`_ can compile a slightly modified version of Python code into a C extension, and -can be used on many different platforms. - -`Psyco <http://psyco.sourceforge.net>`_ is a just-in-time compiler that -translates Python code into x86 assembly language. If you can use it, Psyco can -provide dramatic speedups for critical functions. +can be used on many different platforms. Depending on your code, Cython +may be able to make it significantly faster than when run by the Python +interpreter. The rest of this answer will discuss various tricks for squeezing a bit more speed out of Python code. *Never* apply any optimization tricks unless you know -- Repository URL: http://hg.python.org/cpython
participants (1)
-
antoine.pitrou