[Python-Dev] Proposal: Run GC less often

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Jun 23 03:10:51 CEST 2008

Martin v. Löwis wrote:

>>Wouldn't it be simpler just to base the collection frequency
>>directly on the total number of objects in the heap?
> Using what precise formula?

The simplest thing to try would be

  middle_collections >= num_objects_in_heap * some_constant


More information about the Python-Dev mailing list