Opened 8 years ago

Closed 8 years ago

#1058 closed defect (fixed)

Collection caching bug?

Reported by: pett Owned by: Tom Goddard
Priority: major Milestone: 0.7
Component: Core Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The Collection.iter method caches the objects it creates. This seems like a bug since the Collection can shrink as items are destroyed, but the cache remains unchanged as far as I can tell.

Change History (2)

in reply to:  1 ; comment:1 by goddard@…, 8 years ago

Yes a bug.  That caching code was added 3 years ago before destroying atomic objects deleted them from the collections.

comment:2 by Tom Goddard, 8 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

If collection has fewer objects than in cached list then don't use the cached list.

Note: See TracTickets for help on using tickets.