10000 bpo-46841: Inline cache for `BINARY_SUBSCR`. by markshannon · Pull Request #31618 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-46841: Inline cache for BINARY_SUBSCR. #31618

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 11 commits into from
Mar 1, 2022
Prev Previous commit
Next Next commit
Clarify comments.
  • Loading branch information
markshannon committed Mar 1, 2022
commit f667ddb9729598a9dae9f1cdf7a5ce0cc8b8edbb
6 changes: 3 additions & 3 deletions Include/cpython/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ struct _typeobject {
};

/* This struct is used by the specializer
* It should should be treated as opaque blob
* by any other code */
* It should should be treated as an opaque blob
* by code than the specializer and interpreter. */
struct _specialization_cache {
PyObject *getitem;
};
Expand All @@ -254,7 +254,7 @@ typedef struct _heaptypeobject {
struct _dictkeysobject *ht_cached_keys;
PyObject *ht_module;
char *_ht_tpname; // Storage for "tp_name"; see PyType_FromModuleAndSpec
struct _specialization_cache _spec_cache; // Internal -- DO NOT USE.
struct _specialization_cache _spec_cache; // For use by the specializer.
/* here are optional user slots, followed by the members. */
} PyHeapTypeObject;

Expand Down
0