bpo-24076: Inline single digit unpacking in the integer fastpath of sum()#28469
bpo-24076: Inline single digit unpacking in the integer fastpath of sum()#28469scoder merged 3 commits intopython:mainfrom
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