-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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