[Python-Dev] GC Proposal

"Martin v. Löwis" martin at v.loewis.de
Sun Jun 29 08:59:32 CEST 2008


> Looks about equivalent, but "survivors" may mean two different things
> depending on if it removes deleted survivors or not.  Splitting that
> up, we get this form:
> 
> old <= survivors * 2.0 + deleted * 1.0

What precisely would be the "deleted" count? If it counts deallocations,
is it relevant what generation the deallocated object was from?
If so, how do you determine the generation? If not, wouldn't

while 1:
  x=[]

trigger a full garbage collection fairly quickly?

Regards,
Martin


More information about the Python-Dev mailing list