Message259560
| 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%) |
|