On 9/6/2012 8:01 PM, jimbo1qaz wrote:
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?

Yes, meaningless, yes, and no.
I would do what seems sensible to you in the context.

--
Terry Jan Reedy

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to