Message242262
> there are three ingredients here - sum, (x)range and the integer addition that sum will be performing at each iteration.
... not to forget the interpreter startup time on his machine. :)
I did a tiny bit of profiling and about 90% of the time seems to be spent creating and deallocating throw-away PyLong objects. My guess is that it simply lacks a free-list in _PyLong_New(). |
|
Date |
User |
Action |
Args |
2015-04-30 05:30:12 | scoder | set | recipients:
+ scoder, rhettinger, mark.dickinson, pitrou, lukasz.langa, serhiy.storchaka |
2015-04-30 05:30:12 | scoder | set | messageid: <1430371812.44.0.547072822959.issue24076@psf.upfronthosting.co.za> |
2015-04-30 05:30:12 | scoder | link | issue24076 messages |
2015-04-30 05:30:11 | scoder | create | |
|