Better stats for LOAD_ATTR and STORE_ATTR (GH-100295)

* Don't attempt to specialize for LOAD_ATTR on instance if class has attribute

* Improvement to LOAD_ATTR and STORE_ATTR specialization stats.
This commit is contained in:
Mark Shannon 2022-12-16 15:41:23 +00:00 • committed by GitHub
parent 0415cf895f
commit 289c1126dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 13 deletions

View file

@ -8,7 +8,7 @@ extern "C" {
#ifdef Py_STATS
#define SPECIALIZATION_FAILURE_KINDS 32
#define SPECIALIZATION_FAILURE_KINDS 36
/* Stats for determining who is calling PyEval_EvalFrame */
#define EVAL_CALL_TOTAL 0