Message259897
The attached patch implements fast path for modulo division of single digit longs. Some timeit micro-benchmarks: -m timeit -s "x=22331" "x%2;x%3;x%4;x%5;x%6;x%7;x%8;x%99;x%100;" with patch: 0.213 usec without patch: 0.602 usec | |
Date | User | Action | Args | 2016-02-08 22:31:15 | yselivanov | set | recipients: + yselivanov, vstinner, serhiy.storchaka | 2016-02-08 22:31:15 | yselivanov | set | messageid: <1454970675.84.0.301967594836.issue26315@psf.upfronthosting.co.za> | 2016-02-08 22:31:15 | yselivanov | link | issue26315 messages | 2016-02-08 22:31:15 | yselivanov | create | | |