[Python-Dev] Proposal: Run GC less often

"Martin v. Löwis" martin at v.loewis.de
Mon Jun 23 05:32:01 CEST 2008


>>> 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

So what value is some_constant?

Regards,
Martin



More information about the Python-Dev mailing list