| 1 |
======================== |
| 2 |
PyPy 1.6 - kickass panda |
| 3 |
======================== |
| 4 |
|
| 5 |
We're pleased to announce the 1.6 release of PyPy. This release brings a lot |
| 6 |
of bugfixes and performance improvements over 1.5, and improves support for |
| 7 |
Windows 32bit and OS X 64bit. This version fully implements Python 2.7.1 and |
| 8 |
has beta level support for loading CPython C extensions. You can download it |
| 9 |
here: |
| 10 |
|
| 11 |
https://pypy.org/download.html |
| 12 |
|
| 13 |
What is PyPy? |
| 14 |
============= |
| 15 |
|
| 16 |
PyPy is a very compliant Python interpreter, almost a drop-in replacement for |
| 17 |
CPython 2.7.1. It's fast (`pypy 1.5 and cpython 2.6.2`_ performance comparison) |
| 18 |
due to its integrated tracing JIT compiler. |
| 19 |
|
| 20 |
This release supports x86 machines running Linux 32/64 or Mac OS X. Windows 32 |
| 21 |
is beta (it roughly works but a lot of small issues have not been fixed so |
| 22 |
far). Windows 64 is not yet supported. |
| 23 |
|
| 24 |
The main topics of this release are speed and stability: on average on |
| 25 |
our benchmark suite, PyPy 1.6 is between **20% and 30%** faster than PyPy 1.5, |
| 26 |
which was already much faster than CPython on our set of benchmarks. |
| 27 |
|
| 28 |
The speed improvements have been made possible by optimizing many of the |
| 29 |
layers which compose PyPy. In particular, we improved: the Garbage Collector, |
| 30 |
the JIT warmup time, the optimizations performed by the JIT, the quality of |
| 31 |
the generated machine code and the implementation of our Python interpreter. |
| 32 |
|
| 33 |
.. _`pypy 1.5 and cpython 2.6.2`: https://speed.pypy.org |
| 34 |
|
| 35 |
|
| 36 |
Highlights |
| 37 |
========== |
| 38 |
|
| 39 |
* Numerous performance improvements, overall giving considerable speedups: |
| 40 |
|
| 41 |
- better GC behavior when dealing with very large objects and arrays |
| 42 |
|
| 43 |
- **fast ctypes:** now calls to ctypes functions are seen and optimized |
| 44 |
by the JIT, and they are up to 60 times faster than PyPy 1.5 and 10 times |
| 45 |
faster than CPython |
| 46 |
|
| 47 |
- improved generators(1): simple generators now are inlined into the caller |
| 48 |
loop, making performance up to 3.5 times faster than PyPy 1.5. |
| 49 |
|
| 50 |
- improved generators(2): thanks to other optimizations, even generators |
| 51 |
that are not inlined are between 10% and 20% faster than PyPy 1.5. |
| 52 |
|
| 53 |
- faster warmup time for the JIT |
| 54 |
|
| 55 |
- JIT support for single floats (e.g., for ``array('f')``) |
| 56 |
|
| 57 |
- optimized dictionaries: the internal representation of dictionaries is now |
| 58 |
dynamically selected depending on the type of stored objects, resulting in |
| 59 |
faster code and smaller memory footprint. For example, dictionaries whose |
| 60 |
keys are all strings, or all integers. Other dictionaries are also smaller |
| 61 |
due to bugfixes. |
| 62 |
|
| 63 |
* JitViewer: this is the first official release which includes the JitViewer, |
| 64 |
a web-based tool which helps you to see which parts of your Python code have |
| 65 |
been compiled by the JIT, down until the assembler. The `jitviewer`_ 0.1 has |
| 66 |
already been release and works well with PyPy 1.6. |
| 67 |
|
| 68 |
* The CPython extension module API has been improved and now supports many |
| 69 |
more extensions. |
| 70 |
|
| 71 |
* Multibyte encoding support: this was of of the last areas in which we were |
| 72 |
still behind CPython, but now we fully support them. |
| 73 |
|
| 74 |
* Preliminary support for NumPy: this release includes a preview of a very |
| 75 |
fast NumPy module integrated with the PyPy JIT. Unfortunately, this does |
| 76 |
not mean that you can expect to take an existing NumPy program and run it on |
| 77 |
PyPy, because the module is still unfinished and supports only some of the |
| 78 |
numpy API. However, barring some details, what works should be |
| 79 |
blazingly fast :-) |
| 80 |
|
| 81 |
* Bugfixes: since the 1.5 release we fixed 53 bugs in our `bug tracker`_, not |
| 82 |
counting the numerous bugs that were found and reported through other |
| 83 |
channels than the bug tracker. |
| 84 |
|
| 85 |
Cheers, |
| 86 |
|
| 87 |
Hakan Ardo, Carl Friedrich Bolz, Laura Creighton, Antonio Cuni, |
| 88 |
Maciej Fijalkowski, Amaury Forgeot d'Arc, Alex Gaynor, |
| 89 |
Armin Rigo and the PyPy team |
| 90 |
|
| 91 |
.. _`jitviewer`: https://morepypy.blogspot.com/2011/08/visualization-of-jitted-code.html |
| 92 |
.. _`bug tracker`: https://bugs.pypy.org |
| 93 |
|