Message 341384 - Python tracker

Message341384

Author serhiy.storchaka
Recipients mark.dickinson, rhettinger, serhiy.storchaka
Date 2019-05-04.13:52:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556977961.32.0.716286576576.issue36791@roundup.psfhosted.org>
In-reply-to
Content
I tested few cases (all positive, all negative, mixed), and did not found any performance difference after this change.

./python -m perf timeit -s "a = list(range(10**4))" -- "sum(a)"
./python -m perf timeit -s "a = [-i for i in range(10**4)]" -- "sum(a)"
./python -m perf timeit -s "a = [i*(-1)**i for i in range(10**4)]" -- "sum(a)"
History
Date User Action Args
2019-05-04 13:52:41serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, mark.dickinson
2019-05-04 13:52:41serhiy.storchakasetmessageid: <1556977961.32.0.716286576576.issue36791@roundup.psfhosted.org>
2019-05-04 13:52:41serhiy.storchakalinkissue36791 messages
2019-05-04 13:52:41serhiy.storchakacreate