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
Catch up with main
  • Loading branch information
brandtbucher committed Mar 2, 2022
commit 4a6632c7b4fedf8657384ccf1664d4d745a41804
2 changes: 1 addition & 1 deletion Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ eval_frame_handle_pending(PyThreadState *tstate)
LOAD_##attr_or_method); \
assert(dict->ma_keys->dk_kind == DICT_KEYS_UNICODE); \
assert(cache->index < dict->ma_keys->dk_nentries); \
PyDictKeyEntry *ep = DK_ENTRIES(dict->ma_keys) + cache->index; \
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! */ \
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0