emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eager garbage collection


From: Spencer Baugh
Subject: Re: Eager garbage collection
Date: Tue, 17 Nov 2020 19:20:47 -0500

Stefan Monnier <monnier@iro.umontreal.ca> writes:
>The time to do a GC doesn't depend on the amount of garbage so much as
>the size of the heap, but I think I like your idea.  Better yet: keep
>track of the time that each GC takes and use that as a guide for the
>idle-time delay.

OK, I added an exponential-moving-average to track the time that GC
uses, and use it as the idle-time delay, with the idea that if we
reach idle time X, the naive best estimate of the total idle time is
2*X. See following patches.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]