Debian Codegraph @

pypy/doc/whatsnew-4.0.0.rst

raw
1 ========================
2 What's new in PyPy 4.0.0
3 ========================
4
5 .. this is a revision shortly after release-2.6.1
6 .. startrev: 3a8f5481dab4
7
8 .. branch: keys_with_hash
9
10 Improve the performance of ``dict.update()`` and a bunch of methods from
11 sets, by reusing the hash value stored in one dict when inspecting
12 or changing another dict with that key.
13
14 .. branch: optresult-unroll
15
16 A major refactoring of the ``ResOperations`` that kills Box. Also rewrote
17 unrolling to enable future enhancements. Should improve warmup time
18 by 20% or so.
19
20 .. branch: optimize-cond-call
21
22 Optimize common sequences of operations like
23 ``int_lt/cond_call`` in the JIT backends
24
25 .. branch: missing_openssl_include
26
27 Fix for missing headers in OpenBSD, already applied in downstream ports
28
29 .. branch: gc-more-incremental
30
31 Remove a source of non-incremental-ness in the GC: now
32 ``external_malloc()`` no longer runs ``gc_step_until()`` any more. If there
33 is a currently-running major collection, we do only so many steps
34 before returning. This number of steps depends on the size of the
35 allocated object. It is controlled by tracking the general progress
36 of these major collection steps and the size of old objects that
37 keep adding up between them.
38
39 .. branch: remember-tracing-counts
40
41 Re-enable jithooks
42
43 .. branch: detect_egd2
44
45 .. branch: shadowstack-no-move-2
46
47 Issue #2141: fix a crash on Windows and OS/X and ARM when running
48 at least 20 threads.
49
50 .. branch: numpy-ctypes
51
52 Add support for ndarray.ctypes property.
53
54 .. branch: share-guard-info
55
56 Share guard resume data between consecutive guards that have only
57 pure operations and guards in between.
58
59 .. branch: issue-2148
60
61 Fix performance regression on operations mixing numpy scalars and Python
62 floats, cf. issue #2148.
63
64 .. branch: cffi-stdcall
65
66 Win32: support ``__stdcall`` in CFFI.
67
68 .. branch: callfamily
69
70 Refactorings of annotation and rtyping of function calls.
71
72 .. branch: fortran-order
73
74 Allow creation of fortran-ordered ndarrays
75
76 .. branch: type_system-cleanup
77
78 Remove some remnants of the old ``ootypesystem`` vs ``lltypesystem`` dichotomy.
79
80 .. branch: cffi-handle-lifetime
81
82 ``ffi.new_handle()`` returns handles that work more like CPython's: they
83 remain valid as long as the target exists (unlike the previous
84 version, where handles become invalid *before* the ``__del__`` is called).
85
86 .. branch: ufunc-casting
87
88 allow automatic casting in ufuncs (and ``frompypyfunc``) to cast the
89 arguments to the allowed function type declarations, fixes various
90 failures in linalg CFFI functions
91
92 .. branch: vecopt
93 .. branch: vecopt-merge
94
95 A new optimization pass to use emit vectorized loops
96
97 .. branch: ppc-updated-backend
98
99 The PowerPC JIT backend is merged.
100
101 .. branch: osx-libffi
102
103 .. branch: lazy-fast2locals
104
105 Improve the performance of simple trace functions by lazily calling
106 ``fast2locals`` and ``locals2fast`` only if ``f_locals`` is actually accessed.
107