Bitwise OR?
Tim N. van der Leeuw
tim.leeuwvander at nl.unisys.com
Fri Mar 24 08:11:53 EST 2006
I wonder what causes one version to be faster for positive, and the
other faster for negative numbers? I can see that the pos-version
doesn't make as many iterations as the neg version, but it doesn't pad
the length of the result to the requested number of digits and
potentially produces more digits.
I also wonder if it wouldn't be faster to put the numbers into a list
and join the list into a string -- did you test with that?
Cheers,
--Tim
More information about the Python-list
mailing list