Message287372
Maybe PyObject_Call(), _PyObject_FastCallDict(), etc. can also be modified to get the following fast-path:
+ if (Py_TYPE(func) == &PyMethod_Type) {
+ result = _PyMethod_FastCall(func, args, nargs);
+ }
But I don't know how common it is to get a PyMethod_Type object in these functions, nor the code of the additional if. |
|
Date |
User |
Action |
Args |
2017-02-09 00:19:54 | vstinner | set | recipients:
+ vstinner, methane, serhiy.storchaka |
2017-02-09 00:19:54 | vstinner | set | messageid: <1486599594.62.0.016320305361.issue29507@psf.upfronthosting.co.za> |
2017-02-09 00:19:54 | vstinner | link | issue29507 messages |
2017-02-09 00:19:54 | vstinner | create | |
|