Author yselivanov
Recipients serhiy.storchaka, vstinner, yselivanov
Date 2016-02-08.22:31:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454970675.84.0.301967594836.issue26315@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-02-08 22:31:15yselivanovsetrecipients: + yselivanov, vstinner, serhiy.storchaka
2016-02-08 22:31:15yselivanovsetmessageid: <1454970675.84.0.301967594836.issue26315@psf.upfronthosting.co.za>
2016-02-08 22:31:15yselivanovlinkissue26315 messages
2016-02-08 22:31:15yselivanovcreate