This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Bell
Recipients Mark.Bell, lisroach, rhettinger, serhiy.storchaka, steven.daprano
Date 2017-08-16.12:52:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502887936.17.0.510359117642.issue31141@psf.upfronthosting.co.za>
In-reply-to
Content
I ran some timing tests of the patch I submitted to compare it to the current build of Python. Using timit on the current master branch I got:

    python.exe -m timeit "sum(())"    .... 1.12 usec per loop
    python.exe -m timeit "sum((), 0)" .... 1.22 usec per loop

And for the patched version:

    python.exe -m timeit "sum(())"    .... 1.46 usec per loop
    python.exe -m timeit "sum((), 0)" .... 1.57 usec per loop

However my patch wasn't just the simple argument clinic change suggested by serhiy.storchaka, so maybe that would be more efficient and easier to understand.
History
Date User Action Args
2017-08-16 12:52:16Mark.Bellsetrecipients: + Mark.Bell, rhettinger, steven.daprano, serhiy.storchaka, lisroach
2017-08-16 12:52:16Mark.Bellsetmessageid: <1502887936.17.0.510359117642.issue31141@psf.upfronthosting.co.za>
2017-08-16 12:52:16Mark.Belllinkissue31141 messages
2017-08-16 12:52:15Mark.Bellcreate