]> granicus.if.org Git - python/commit
handle_finalizers(): Rewrote to call append_objects() and gc_list_merge()
authorTim Peters <tim.peters@gmail.com>
Sun, 6 Apr 2003 19:41:39 +0000 (19:41 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 6 Apr 2003 19:41:39 +0000 (19:41 +0000)
commit259272b7a0edaf06b1a70379e74907ae4166c67e
treeaf8bfbcddb9f6db9453b3aafb6f42488959afb7f
parentf394df47fd943d7067b5c3bedbf2c359d864923c
handle_finalizers():  Rewrote to call append_objects() and gc_list_merge()
instead of looping.  Smaller and clearer.  Faster, too, when we're not
appending to gc.garbage:  gc_list_merge() takes constant time, regardless
of the lists' sizes.

append_objects():  Moved up to live with the other list manipulation
utilities.
Modules/gcmodule.c