summaryrefslogtreecommitdiffstats
path: root/Doc/faq/programming.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-12-03 20:21:36 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-12-03 20:21:36 (GMT)
commit9cb41dfbaa20bab73172076b598ac874ab8c8b4f (patch)
tree186e9cfcf349f43327d3f4dac6c2dcb2b6633737 /Doc/faq/programming.rst
parent5dd95d6f2d609c56b7d2b23064284191785e2bfa (diff)
downloadcpython-9cb41dfbaa20bab73172076b598ac874ab8c8b4f.zip
cpython-9cb41dfbaa20bab73172076b598ac874ab8c8b4f.tar.gz
cpython-9cb41dfbaa20bab73172076b598ac874ab8c8b4f.tar.bz2
Remove references to psyco, which is mostly unmaintained and doesn't work with Python 3.
Diffstat (limited to 'Doc/faq/programming.rst')
-rw-r--r--Doc/faq/programming.rst14
1 files changed, 3 insertions, 11 deletions
diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst
index f157a94..a56f3f3 100644
--- a/Doc/faq/programming.rst
+++ b/Doc/faq/programming.rst
@@ -121,19 +121,11 @@ My program is too slow. How do I speed it up?
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