| 1 |
=========================== |
| 2 |
What's new in PyPy2.7 5.10+ |
| 3 |
=========================== |
| 4 |
|
| 5 |
.. this is a revision shortly after release-pypy2.7-v5.10.0 |
| 6 |
.. startrev: 6b024edd9d12 |
| 7 |
|
| 8 |
.. branch: cpyext-avoid-roundtrip |
| 9 |
|
| 10 |
Big refactoring of some cpyext code, which avoids a lot of nonsense when |
| 11 |
calling C from Python and vice-versa: the result is a big speedup in |
| 12 |
function/method calls, up to 6 times faster. |
| 13 |
|
| 14 |
.. branch: cpyext-datetime2 |
| 15 |
|
| 16 |
Support ``tzinfo`` field on C-API datetime objects, fixes latest pandas HEAD |
| 17 |
|
| 18 |
|
| 19 |
.. branch: mapdict-size-limit |
| 20 |
|
| 21 |
Fix a corner case of mapdict: When an instance is used like a dict (using |
| 22 |
``setattr`` and ``getattr``, or ``.__dict__``) and a lot of attributes are |
| 23 |
added, then the performance using mapdict is linear in the number of |
| 24 |
attributes. This is now fixed (by switching to a regular dict after 80 |
| 25 |
attributes). |
| 26 |
|
| 27 |
|
| 28 |
.. branch: cpyext-faster-arg-passing |
| 29 |
|
| 30 |
When using cpyext, improve the speed of passing certain objects from PyPy to C |
| 31 |
code, most notably None, True, False, types, all instances of C-defined types. |
| 32 |
Before, a dict lookup was needed every time such an object crossed over, now it |
| 33 |
is just a field read. |
| 34 |
|
| 35 |
|
| 36 |
.. branch: 2634_datetime_timedelta_performance |
| 37 |
|
| 38 |
Improve datetime + timedelta performance. |
| 39 |
|
| 40 |
.. branch: memory-accounting |
| 41 |
|
| 42 |
Improve way to describe memory |
| 43 |
|
| 44 |
.. branch: msvc14 |
| 45 |
|
| 46 |
Allow compilation with Visual Studio 2017 compiler suite on windows |
| 47 |
|
| 48 |
.. branch: refactor-slots |
| 49 |
|
| 50 |
Refactor cpyext slots. |
| 51 |
|
| 52 |
|
| 53 |
.. branch: call-loopinvariant-into-bridges |
| 54 |
|
| 55 |
Speed up branchy code that does a lot of function inlining by saving one call |
| 56 |
to read the TLS in most bridges. |
| 57 |
|
| 58 |
.. branch: rpython-sprint |
| 59 |
|
| 60 |
Refactor in rpython signatures |
| 61 |
|
| 62 |
.. branch: cpyext-tls-operror2 |
| 63 |
|
| 64 |
Store error state thread-locally in executioncontext, fixes issue #2764 |
| 65 |
|
| 66 |
.. branch: cpyext-fast-typecheck |
| 67 |
|
| 68 |
Optimize `Py*_Check` for `Bool`, `Float`, `Set`. Also refactor and simplify |
| 69 |
`W_PyCWrapperObject` which is used to call slots from the C-API, greatly |
| 70 |
improving microbenchmarks in https://github.com/antocuni/cpyext-benchmarks |
| 71 |
|
| 72 |
|
| 73 |
.. branch: fix-sre-problems |
| 74 |
|
| 75 |
Fix two (unrelated) JIT bugs manifesting in the re module: |
| 76 |
|
| 77 |
- green fields are broken and were thus disabled, plus their usage removed from |
| 78 |
the _sre implementation |
| 79 |
|
| 80 |
- in rare "trace is too long" situations, the JIT could break behaviour |
| 81 |
arbitrarily. |
| 82 |
|
| 83 |
.. branch: jit-hooks-can-be-disabled |
| 84 |
|
| 85 |
Be more efficient about JIT hooks. Make it possible for the frontend to declare |
| 86 |
that jit hooks are currently not enabled at all. in that case, the list of ops |
| 87 |
does not have to be created in the case of the on_abort hook (which is |
| 88 |
expensive). |
| 89 |
|
| 90 |
|
| 91 |
.. branch: pyparser-improvements |
| 92 |
|
| 93 |
Improve speed of Python parser, improve ParseError messages slightly. |
| 94 |
|
| 95 |
.. branch: ioctl-arg-size |
| 96 |
|
| 97 |
Work around possible bugs in upstream ioctl users, like CPython allocate at |
| 98 |
least 1024 bytes for the arg in calls to ``ioctl(fd, request, arg)``. Fixes |
| 99 |
issue #2776 |
| 100 |
|
| 101 |
.. branch: cpyext-subclass-setattr |
| 102 |
|
| 103 |
Fix for python-level classes that inherit from C-API types, previously the |
| 104 |
`w_obj` was not necessarily preserved throughout the lifetime of the `pyobj` |
| 105 |
which led to cases where instance attributes were lost. Fixes issue #2793 |
| 106 |
|
| 107 |
|
| 108 |
.. branch: pyparser-improvements-2 |
| 109 |
|
| 110 |
Improve line offsets that are reported by SyntaxError. Improve error messages |
| 111 |
for a few situations, including mismatched parenthesis. |
| 112 |
|
| 113 |
.. branch: issue2752 |
| 114 |
|
| 115 |
Fix a rare GC bug that was introduced more than one year ago, but was |
| 116 |
not diagnosed before issue #2752. |
| 117 |
|
| 118 |
.. branch: gc-hooks |
| 119 |
|
| 120 |
Introduce GC hooks, as documented in doc/gc_info.rst |
| 121 |
|
| 122 |
.. branch: gc-hook-better-timestamp |
| 123 |
|
| 124 |
Improve GC hooks |
| 125 |
|
| 126 |
.. branch: cppyy-packaging |
| 127 |
|
| 128 |
Update backend to 0.6.0 and support exceptions through wrappers |