mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
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.
This commit is contained in:
parent
82e5c28af7
commit
fb68791a26
3 changed files with 179 additions and 72 deletions
|
|
@ -336,6 +336,7 @@ typedef struct _stats {
|
|||
uint64_t deferred;
|
||||
uint64_t miss;
|
||||
uint64_t deopt;
|
||||
uint64_t unquickened;
|
||||
#if SPECIALIZATION_STATS_DETAILED
|
||||
PyObject *miss_types;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue