Message259560
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%) |
|
Date |
User |
Action |
Args |
2016-02-04 12:50:15 | vstinner | set | recipients:
+ vstinner, lemburg, rhettinger, mark.dickinson, pitrou, casevh, serhiy.storchaka, yselivanov, josh.r, zbyrne |
2016-02-04 12:50:15 | vstinner | set | messageid: <1454590215.47.0.488862786833.issue21955@psf.upfronthosting.co.za> |
2016-02-04 12:50:15 | vstinner | link | issue21955 messages |
2016-02-04 12:50:15 | vstinner | create | |
|