Debian Codegraph @

pypy/doc/release-1.7.0.rst

raw
1 ==================================
2 PyPy 1.7 - widening the sweet spot
3 ==================================
4
5 We're pleased to announce the 1.7 release of PyPy. As became a habit, this
6 release brings a lot of bugfixes and performance improvements over the 1.6
7 release. However, unlike the previous releases, the focus has been on widening
8 the "sweet spot" of PyPy. That is, classes of Python code that PyPy can greatly
9 speed up should be vastly improved with this release. You can download the 1.7
10 release here:
11
12 https://pypy.org/download.html
13
14 What is PyPy?
15 =============
16
17 PyPy is a very compliant Python interpreter, almost a drop-in replacement for
18 CPython 2.7. It's fast (`pypy 1.7 and cpython 2.7.1`_ performance comparison)
19 due to its integrated tracing JIT compiler.
20
21 This release supports x86 machines running Linux 32/64, Mac OS X 32/64 or
22 Windows 32. Windows 64 work is ongoing, but not yet natively supported.
23
24 The main topic of this release is widening the range of code which PyPy
25 can greatly speed up. On average on
26 our benchmark suite, PyPy 1.7 is around **30%** faster than PyPy 1.6 and up
27 to **20 times** faster on some benchmarks.
28
29 .. _`pypy 1.7 and cpython 2.7.1`: https://speed.pypy.org
30
31
32 Highlights
33 ==========
34
35 * Numerous performance improvements. There are too many examples which python
36 constructs now should behave faster to list them.
37
38 * Bugfixes and compatibility fixes with CPython.
39
40 * Windows fixes.
41
42 * PyPy now comes with stackless features enabled by default. However,
43 any loop using stackless features will interrupt the JIT for now, so no real
44 performance improvement for stackless-based programs. Contact pypy-dev for
45 info how to help on removing this restriction.
46
47 * NumPy effort in PyPy was renamed numpypy. In order to try using it, simply
48 write::
49
50 import numpypy as numpy
51
52 at the beginning of your program. There is a huge progress on numpy in PyPy
53 since 1.6, the main feature being implementation of dtypes.
54
55 * JSON encoder (but not decoder) has been replaced with a new one. This one
56 is written in pure Python, but is known to outperform CPython's C extension
57 up to **2 times** in some cases. It's about **20 times** faster than
58 the one that we had in 1.6.
59
60 * The memory footprint of some of our RPython modules has been drastically
61 improved. This should impact any applications using for example cryptography,
62 like tornado.
63
64 * There was some progress in exposing even more CPython C API via cpyext.
65
66 Things that didn't make it, expect in 1.8 soon
67 ==============================================
68
69 There is an ongoing work, which while didn't make it to the release, is
70 probably worth mentioning here. This is what you should probably expect in
71 1.8 some time soon:
72
73 * Specialized list implementation. There is a branch that implements lists of
74 integers/floats/strings as compactly as array.array. This should drastically
75 improve performance/memory impact of some applications
76
77 * NumPy effort is progressing forward, with multi-dimensional arrays coming
78 soon.
79
80 * There are two brand new JIT assembler backends, notably for the PowerPC and
81 ARM processors.
82
83 Fundraising
84 ===========
85
86 It's maybe worth mentioning that we're running fundraising campaigns for
87 NumPy effort in PyPy and for Python 3 in PyPy. In case you want to see any
88 of those happen faster, we urge you to donate to `numpy proposal`_ or
89 `py3k proposal`_. In case you want PyPy to progress, but you trust us with
90 the general direction, you can always donate to the `general pot`_.
91
92 .. _`numpy proposal`: https://pypy.org/numpydonate.html
93 .. _`py3k proposal`: https://pypy.org/py3donate.html
94 .. _`general pot`: https://pypy.org