Message300356
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. |
|
Date |
User |
Action |
Args |
2017-08-16 12:52:16 | Mark.Bell | set | recipients:
+ Mark.Bell, rhettinger, steven.daprano, serhiy.storchaka, lisroach |
2017-08-16 12:52:16 | Mark.Bell | set | messageid: <1502887936.17.0.510359117642.issue31141@psf.upfronthosting.co.za> |
2017-08-16 12:52:16 | Mark.Bell | link | issue31141 messages |
2017-08-16 12:52:15 | Mark.Bell | create | |
|