8000 bpo-46841: Use inline caching for attribute accesses by brandtbucher · Pull Request #31640 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-46841: Use inline caching for attribute accesses #31640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 3, 2022
Prev Previous commit
Next Next commit
Remove workaround
  • Loading branch information
brandtbucher committed Mar 3, 2022
commit 09fbac5b127c1869834ae72284792cc7c7d102a1
2 changes: 0 additions & 2 deletions Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -1459,8 +1459,6 @@ eval_frame_handle_pending(PyThreadState *tstate)
PyDictUnicodeEntry *ep = DK_UNICODE_ENTRIES(dict->ma_keys) + cache->index; \
res = ep->me_value; \
DEOPT_IF(res == NULL, LOAD_##attr_or_method); \
/* XXX: Remove this next line to make test_asyncio very angry! */ \
DEOPT_IF(LOAD_##attr_or_method == LOAD_ATTR, LOAD_##attr_or_method); \
STAT_INC(LOAD_##attr_or_method, hit); \
Py_INCREF(res);

Expand Down
0