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 vstinner
Recipients casevh, josh.r, lemburg, mark.dickinson, pitrou, rhettinger, serhiy.storchaka, vstinner, yselivanov, zbyrne
Date 2016-02-04.12:50:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454590215.47.0.488862786833.issue21955@psf.upfronthosting.co.za>
In-reply-to
Content
I prefer fastint_alt.patch design, it's simpler. I added a comment on the review.

My numbers, best of 5 timeit runs:

$ ./python -m timeit -s "x = 12345" -- "x*2; x*2; x*2; x*2; x*2; x*2; x*2; x*2; x*2; x*2; "

* original: 299 ns
* fastint2.patch: 282 ns (-17 ns, -6%)
* fastint_alt.patch: 267 ns (-32 ns, -11%)
History
Date User Action Args
2016-02-04 12:50:15vstinnersetrecipients: + vstinner, lemburg, rhettinger, mark.dickinson, pitrou, casevh, serhiy.storchaka, yselivanov, josh.r, zbyrne
2016-02-04 12:50:15vstinnersetmessageid: <1454590215.47.0.488862786833.issue21955@psf.upfronthosting.co.za>
2016-02-04 12:50:15vstinnerlinkissue21955 messages
2016-02-04 12:50:15vstinnercreate