Bitshifts and "And" vs Floor-division and Modular

jimbo1qaz jimmyli1528 at gmail.com
Thu Sep 6 20:01:12 EDT 2012


Is it faster to use bitshifts or floor division? And which is better, & or %?
All divisors and mods are power of 2, so are binary operations faster? And are they considered bad style?



More information about the Python-list mailing list