mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
59 lines
430 B
ReStructuredText
59 lines
430 B
ReStructuredText
Speed
|
|
=====
|
|
|
|
CPython, the most commonly used implementation of Python, is slow for CPU bound tasks. `PyPy`_ is fast.
|
|
|
|
|
|
Context
|
|
:::::::
|
|
|
|
|
|
The GIL
|
|
-------
|
|
|
|
|
|
|
|
C Extentions
|
|
------------
|
|
|
|
|
|
The GIL
|
|
-------
|
|
|
|
|
|
|
|
|
|
C Extentions
|
|
::::::::::::
|
|
|
|
|
|
Cython
|
|
------
|
|
|
|
|
|
Pyrex
|
|
-----
|
|
|
|
|
|
Shedskin?
|
|
---------
|
|
|
|
|
|
|
|
Threading
|
|
:::::::::
|
|
|
|
|
|
Threading
|
|
---------
|
|
|
|
|
|
Spanwing Processes
|
|
------------------
|
|
|
|
|
|
Multiprocessing
|
|
---------------
|
|
|
|
|
|
.. _`PyPy`: http://pypy.org |