diff options
author | Guido van Rossum <guido@python.org> | 2021-01-30 02:02:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-30 02:02:29 (GMT) |
commit | 5c5a938573ce665f00e362c7766912d9b3f3b44e (patch) | |
tree | 7d01ffff4b0952ba0c410f7f3c0b77f92a0f95b4 /Misc | |
parent | ba7a99ddb52a45c8dec1f7e9f1648add0ace82ab (diff) | |
download | cpython-5c5a938573ce665f00e362c7766912d9b3f3b44e.zip cpython-5c5a938573ce665f00e362c7766912d9b3f3b44e.tar.gz cpython-5c5a938573ce665f00e362c7766912d9b3f3b44e.tar.bz2 |
bpo-42927: Inline cache for attributes defined with '__slots__' (#24216)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2021-01-15-20-05-56.bpo-42927.GI-l-7.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-01-15-20-05-56.bpo-42927.GI-l-7.rst b/Misc/NEWS.d/next/Core and Builtins/2021-01-15-20-05-56.bpo-42927.GI-l-7.rst new file mode 100644 index 0000000..8ee578e --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2021-01-15-20-05-56.bpo-42927.GI-l-7.rst @@ -0,0 +1,2 @@ +The inline cache for ``LOAD_ATTR`` now also optimizes access to attributes defined by ``__slots__``.
+This makes reading such attribute up to 30% faster.
\ No newline at end of file |