]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
long_format(): Easy speedup for output bases that aren't a power of 2 (in
authorTim Peters <tim.peters@gmail.com>
Fri, 13 Jul 2001 02:59:26 +0000 (02:59 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 13 Jul 2001 02:59:26 +0000 (02:59 +0000)
commitfad225f1ba5df5f22328ea5648d1e3d2aa919479
treef986a328a9bcbbae5294caeac37e43f7586458c2
parenta3253d70bc4a1446f2b088ed9cdc821e75faaf96
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.
Objects/longobject.c