]> granicus.if.org Git - python/commit
Introduced helper functions v_iadd and v_isub, for in-place digit-vector
authorTim Peters <tim.peters@gmail.com>
Mon, 12 Aug 2002 05:09:36 +0000 (05:09 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 12 Aug 2002 05:09:36 +0000 (05:09 +0000)
commit877a2126786bd2a8e5086fbddb05a593c40cbc51
tree2e77f55720821225666dd16e268c7929a8161338
parente343878eecf7d5a7d10703678883a5476bfec044
Introduced helper functions v_iadd and v_isub, for in-place digit-vector
addition and subtraction.  Reworked the tail end of k_mul() to use them.
This saves oodles of one-shot longobject allocations (this is a triply-
recursive routine, so saving one allocation in the body saves 3**n
allocations at depth n; we actually save 2 allocations in the body).
Objects/longobject.c