[issue24076] sum() several times slower on Python 3 64-bit
Pablo Galindo Salgado
report at bugs.python.org
Tue Sep 21 12:45:45 EDT 2021
Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:
Unfortunately commit debd80403721b00423680328d6adf160a28fbff4 introduced a reference leak:
❯ ./python -m test test_grammar -R :
0:00:00 load avg: 2.96 Run tests sequentially
0:00:00 load avg: 2.96 [1/1] test_grammar
beginning 9 repetitions
123456789
.........
test_grammar leaked [12, 12, 12, 12] references, sum=48
test_grammar failed (reference leak)
== Tests result: FAILURE ==
1 test failed:
test_grammar
Total duration: 1.1 sec
Tests result: FAILURE
debd80403721b00423680328d6adf160a28fbff4 is the first bad commit
commit debd80403721b00423680328d6adf160a28fbff4
Author: scoder <stefan_ml at behnel.de>
Date: Tue Sep 21 11:01:18 2021 +0200
bpo-24076: Inline single digit unpacking in the integer fastpath of sum() (GH-28469)
.../Core and Builtins/2021-09-20-10-02-12.bpo-24076.ZFgFSj.rst | 1 +
Python/bltinmodule.c | 10 +++++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
create mode 100644 Misc/NEWS.d/next/Core and Builtins/2021-09-20-10-02-12.bpo-24076.ZFgFSj.rst
----------
nosy: +pablogsal
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue24076>
_______________________________________
More information about the Python-bugs-list
mailing list