-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-46939: Specialize calls to Python classes (POSTCALL edition) #31936
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-46939: Specialize calls to Python classes (POSTCALL edition) #31936
Conversation
Final alternative method, if we don't want all the stack manipulation: Downside is that decref during error handling is tricky. Current method of pushing things onto the stack handles that for us. |
Have you benchmarked this? |
Not yet. I plan to do so tomorrow (your time). The results should be available by friday. |
compare_to RETURN_VALUE hack PR -> POSTCALL:
compare_to main->POSTCALL:
|
@markshannon in short, Shall we go ahead with |
|
If this is accepted, I have one more specialization in mind before 3.11 beta. Namely, calls to Python classes with non-Python
|
…ize_py_class_postcall
Should this be closed in favor of #99331? |
https://bugs.python.org/issue46939