| 1 |
======================= |
| 2 |
What's new in PyPy 2.4+ |
| 3 |
======================= |
| 4 |
|
| 5 |
.. this is a revision shortly after release-2.3.x |
| 6 |
.. startrev: ca9b7cf02cf4 |
| 7 |
|
| 8 |
.. branch: fix-bytearray-complexity |
| 9 |
|
| 10 |
Bytearray operations no longer copy the bytearray unnecessarily |
| 11 |
|
| 12 |
Added support for ``__getitem__``, ``__setitem__``, ``__getslice__``, |
| 13 |
``__setslice__``, and ``__len__`` to RPython |
| 14 |
|
| 15 |
.. branch: stringbuilder2-perf |
| 16 |
|
| 17 |
Give the StringBuilder a more flexible internal structure, with a |
| 18 |
chained list of strings instead of just one string. This make it |
| 19 |
more efficient when building large strings, e.g. with cStringIO(). |
| 20 |
|
| 21 |
Also, use systematically jit.conditional_call() instead of regular |
| 22 |
branches. This lets the JIT make more linear code, at the cost of |
| 23 |
forcing a bit more data (to be passed as arguments to |
| 24 |
conditional_calls). I would expect the net result to be a slight |
| 25 |
slow-down on some simple benchmarks and a speed-up on bigger |
| 26 |
programs. |
| 27 |
|
| 28 |
.. branch: ec-threadlocal |
| 29 |
|
| 30 |
Change the executioncontext's lookup to be done by reading a thread- |
| 31 |
local variable (which is implemented in C using '__thread' if |
| 32 |
possible, and pthread_getspecific() otherwise). On Linux x86 and |
| 33 |
x86-64, the JIT backend has a special optimization that lets it emit |
| 34 |
directly a single MOV from a %gs- or %fs-based address. It seems |
| 35 |
actually to give a good boost in performance. |
| 36 |
|
| 37 |
.. branch: fast-gil |
| 38 |
|
| 39 |
A faster way to handle the GIL, particularly in JIT code. The GIL is |
| 40 |
now a composite of two concepts: a global number (it's just set from |
| 41 |
1 to 0 and back around CALL_RELEASE_GIL), and a real mutex. If there |
| 42 |
are threads waiting to acquire the GIL, one of them is actively |
| 43 |
checking the global number every 0.1 ms to 1 ms. Overall, JIT loops |
| 44 |
full of external function calls now run a bit faster (if no thread was |
| 45 |
started yet), or a *lot* faster (if threads were started already). |
| 46 |
|
| 47 |
.. branch: jit-get-errno |
| 48 |
|
| 49 |
Optimize the errno handling in the JIT, notably around external |
| 50 |
function calls. Linux-only. |
| 51 |
|
| 52 |
.. branch: disable_pythonapi |
| 53 |
|
| 54 |
Remove non-functioning ctypes.pyhonapi and ctypes.PyDLL, document this |
| 55 |
incompatibility with cpython. Recast sys.dllhandle to an int. |
| 56 |
|
| 57 |
.. branch: scalar-operations |
| 58 |
|
| 59 |
Fix performance regression on ufunc(<scalar>, <scalar>) in numpy. |
| 60 |
|
| 61 |
.. branch: pytest-25 |
| 62 |
|
| 63 |
Update our copies of py.test and pylib to versions 2.5.2 and 1.4.20, |
| 64 |
respectively. |
| 65 |
|
| 66 |
.. branch: split-ast-classes |
| 67 |
|
| 68 |
Classes in the ast module are now distinct from structures used by the compiler. |
| 69 |
|
| 70 |
.. branch: stdlib-2.7.8 |
| 71 |
|
| 72 |
Upgrades from 2.7.6 to 2.7.8 |
| 73 |
|
| 74 |
.. branch: cpybug-seq-radd-rmul |
| 75 |
|
| 76 |
Fix issue #1861 - cpython compatibility madness |