commit | fad225f1ba5df5f22328ea5648d1e3d2aa919479 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Fri Jul 13 02:59:26 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Fri Jul 13 02:59:26 2001 +0000 |
tree | f986a328a9bcbbae5294caeac37e43f7586458c2 | |
parent | a3253d70bc4a1446f2b088ed9cdc821e75faaf96 [diff] |
long_format(): Easy speedup for output bases that aren't a power of 2 (in particular, str(long) and repr(long) use base 10, and that gets a factor of 4 speedup). Another factor of 2 can be gotten by refactoring divrem1 to support in-place division, but that started getting messy so I'm leaving that out.