mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-45107: Specialize LOAD_METHOD
for instances with dict. (GH-31531)
This commit is contained in:
parent
4dc746310b
commit
2a6ece572c
7 changed files with 143 additions and 66 deletions
|
@ -227,6 +227,8 @@ static inline PyObject **_PyObject_ManagedDictPointer(PyObject *obj)
|
|||
return ((PyObject **)obj)-3;
|
||||
}
|
||||
|
||||
#define MANAGED_DICT_OFFSET (((int)sizeof(PyObject *))*-3)
|
||||
|
||||
extern PyObject ** _PyObject_DictPointer(PyObject *);
|
||||
extern int _PyObject_VisitInstanceAttributes(PyObject *self, visitproc visit, void *arg);
|
||||
extern void _PyObject_ClearInstanceAttributes(PyObject *self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue