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-20180: Use argument clinic for dict.pop() and dict.popitem() #12792
Conversation
Does this provide performance improvement for
|
Yes. Calling convention is changed from METH_VARARGS to METH_FASTCALL.
|
Is it worth adding a NEWS entry for such speedups since this is a considerable one reducing 120ns to 80ns. |
My rationale towards adding them is that unless someones follows CPython commits these optimizations are hard to find. Adding them to changelog might encourage users and give better outlook on how CPython is getting faster, given that it's |
https://bugs.python.org/issue20180