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
Speed up _PyArg_NoKeywords() and like #73646
Comments
+1 |
New changeset 82d1c8d15e18 by Serhiy Storchaka in branch 'default': |
Oh right, I recall that I proposed it. Thanks for this change :-) The next question might it: would it be worth it to try using unlikely() macro on (kwargs == NULL) test in the macro? ;-) I'm talking about GCC/Clang __builtin_expect: #define unlikely(x) __builtin_expect((x),0) |
Perhaps this may help in some critical tight loops (in implementations of |
I created the issue bpo-29461: "Experiment usage of likely/unlikely in CPython core". |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: