]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44337: Improve LOAD_ATTR specialization (GH-26759)
authorMark Shannon <mark@hotpy.org>
Mon, 21 Jun 2021 10:49:21 +0000 (11:49 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Jun 2021 10:49:21 +0000 (11:49 +0100)
commitfb68791a26e157ed3cdeb409c8d8b6cddc7535bd
treef654ff7e23e9736a379ef7939f1dfebecf8ba574
parent82e5c28af7049c4f5343c808f172cbe2e145f49b
bpo-44337: Improve LOAD_ATTR specialization (GH-26759)

* Specialize obj.__class__ with LOAD_ATTR_SLOT

* Specialize instance attribute lookup with attribute on class, provided attribute on class is not an overriding descriptor.

* Add stat for how many times the unquickened instruction has executed.
Include/internal/pycore_code.h
Python/ceval.c
Python/specialize.c