-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-24076: Inline single digit unpacking in the integer fastpath of sum() #28469
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
Conversation
Unfortunately commit debd804 introduced a reference leak: ❯ ./python -m test test_grammar -R : == Tests result: FAILURE == 1 test failed: Total duration: 1.1 sec debd804 is the first bad commit
.../Core and Builtins/2021-09-20-10-02-12.bpo-24076.ZFgFSj.rst | 1 + |
Opened #28493 to fix the refleak |
This gave me a 17% speedup last time I tried (3 years ago). Most integers that go into sum() should fit into a single PyLong digit, so this seems worth it.
https://bugs.python.org/issue24076