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 yselivanov
Recipients pitrou, serhiy.storchaka, vstinner, yselivanov
Date 2016-02-05.02:07:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454638074.35.0.0871962001647.issue26289@psf.upfronthosting.co.za>
In-reply-to
Content
The attached patch optimizes floor division for ints.

### spectral_norm ###
Min: 0.319087 -> 0.289172: 1.10x faster
Avg: 0.322564 -> 0.294319: 1.10x faster
Significant (t=21.71)
Stddev: 0.00249 -> 0.01277: 5.1180x larger


-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.298
without:    0.515
History
Date User Action Args
2016-02-05 02:07:54yselivanovsetrecipients: + yselivanov, pitrou, vstinner, serhiy.storchaka
2016-02-05 02:07:54yselivanovsetmessageid: <1454638074.35.0.0871962001647.issue26289@psf.upfronthosting.co.za>
2016-02-05 02:07:54yselivanovlinkissue26289 messages
2016-02-05 02:07:53yselivanovcreate