]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
PyLong_From{Unsigned,}Long: count the # of digits first, so no more space
authorTim Peters <tim.peters@gmail.com>
Thu, 14 Jun 2001 04:56:19 +0000 (04:56 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 14 Jun 2001 04:56:19 +0000 (04:56 +0000)
commitce9de2f79a8676d6838e446cc72a9ab0a7b6cded
treef571266bc6a330add10799f7d0a03ab67bdab59b
parentff70d3c8d43b3ddcd4271b662dc0a029b22bd51a
PyLong_From{Unsigned,}Long:  count the # of digits first, so no more space
is allocated than needed (used to allocate 80 bytes of digit space no
matter how small the long input).  This also runs faster, at least on 32-
bit boxes.
Objects/longobject.c