]> granicus.if.org Git - python/commit
Refactored the update_slot() code a bit to be hopefully slightly more
authorGuido van Rossum <guido@python.org>
Tue, 16 Oct 2001 17:00:48 +0000 (17:00 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 16 Oct 2001 17:00:48 +0000 (17:00 +0000)
commitb85a8b7bc79179c97ad1e7f876f885166f855cc8
tree079f870efcd0a69c40daee658154a978d8b7fbb0
parent26633f4c00d64eca243c3893b8ec106cfba46a71
Refactored the update_slot() code a bit to be hopefully slightly more
efficient:

- recurse down subclasses only once rather than for each affected
  slot;

- short-circuit recursing down subclasses when a subclass has its own
  definition of the name that caused the update_slot() calls in the
  first place;

- inline collect_ptrs().
Objects/typeobject.c