[comp.lang.smalltalk] Incremental Garbage Colector

ttwang@polyslo.CalPoly.EDU (Thomas Wang) (09/24/89)

I have almost completed an incremental mark & sweep garbage collector for
C++.  A question that I have is : "How often should I run the collectors?"
If I never run it, the system will do panic garbage collection all the time.
But if I run it too often, the system will never get any useful work done.

Is there a formula or heuristic that I can use to decide how often to run
the collector?

Thanks.

 -Thomas Wang ("This is a fantastic comedy that Ataru and his wife Lum, an
                invader from space, cause excitement involving their neighbors."
                  - from a badly translated Urusei Yatsura poster)

                                                     ttwang@polyslo.calpoly.edu