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 scoder
Recipients lukasz.langa, mark.dickinson, pitrou, rhettinger, scoder, serhiy.storchaka
Date 2015-04-30.05:30:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430371812.44.0.547072822959.issue24076@psf.upfronthosting.co.za>
In-reply-to
Content
> 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().
History
Date User Action Args
2015-04-30 05:30:12scodersetrecipients: + scoder, rhettinger, mark.dickinson, pitrou, lukasz.langa, serhiy.storchaka
2015-04-30 05:30:12scodersetmessageid: <1430371812.44.0.547072822959.issue24076@psf.upfronthosting.co.za>
2015-04-30 05:30:12scoderlinkissue24076 messages
2015-04-30 05:30:11scodercreate