mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
gh-87729: improve hit rate of LOAD_SUPER_ATTR specialization (#104270)
This commit is contained in:
parent
ddc0e70a32
commit
77262458fe
13 changed files with 374 additions and 352 deletions
|
@ -10245,18 +10245,6 @@ _PySuper_Lookup(PyTypeObject *su_type, PyObject *su_obj, PyObject *name, int *me
|
|||
return res;
|
||||
}
|
||||
|
||||
PyObject *
|
||||
_PySuper_LookupDescr(PyTypeObject *su_type, PyObject *su_obj, PyObject *name)
|
||||
{
|
||||
PyTypeObject *su_obj_type = supercheck(su_type, su_obj);
|
||||
if (su_obj_type == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
PyObject *res = _super_lookup_descr(su_type, su_obj_type, name);
|
||||
Py_DECREF(su_obj_type);
|
||||
return res;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
super_descr_get(PyObject *self, PyObject *obj, PyObject *type)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue