Message301300
There is special internal API in dictobject.c
_PyDict_LoadGlobal(PyDictObject *globals, PyDictObject *builtins, PyObject *key)
Maybe, we can have special API like that
_PyDict_LookupMro(PyObject *mro, PyObject *key);
BTW, method cache in _PyType_Lookup is not good for initializing type.
It always mishit. And all specialized method is cached even if it isn't used anymore.
Stefan, would you benchmark these ideas? |
|
Date |
User |
Action |
Args |
2017-09-05 06:20:50 | methane | set | recipients:
+ methane, rhettinger, pitrou, scoder, vstinner, serhiy.storchaka |
2017-09-05 06:20:50 | methane | set | messageid: <1504592450.19.0.519434047877.issue31336@psf.upfronthosting.co.za> |
2017-09-05 06:20:50 | methane | link | issue31336 messages |
2017-09-05 06:20:49 | methane | create | |
|