bpo-37249: add declaration of _PyObject_GetMethod#14015
Conversation
|
/cc @methane @msullivan @1st1 |
|
I'm not actually convinced that |
|
I expect further optimization which requires changing this API completely. For general use, I want more high level API for calling method with vectercall. So, if expected user is only Cython, please keep copying. |
OK, got it. |
I'm probably also going to copy it for mypyc at some point, but I think that falls in the same bucket. |
|
As I send to ML, it seems dllexport doesn't affect calling convention (and calling performance). It may affects LTO. But I don't think LTO is important here because _PyObject_GetMethod is relatively heavy function. |
|
If there are at least two users (mypyc and Cython), I'm OK to move it to private/. |
What do you mean here? There is a directory |
|
I'm sorry, there is no So I meant put this API in I will add new really internal API to implement per-opcode cache for LOAD_METHOD, |
OK, done. |
https://bugs.python.org/issue37249