emacs-devel
[Top][All Lists]
Advanced

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

Re: Garbage collector: is 800kb a good default?


From: Eli Zaretskii
Subject: Re: Garbage collector: is 800kb a good default?
Date: Thu, 09 Apr 2020 19:42:25 +0300

> From: Dmitrii Korobeinikov <address@hidden>
> Date: Thu, 9 Apr 2020 20:46:53 +0600
> Cc: emacs-devel <address@hidden>
> 
> > The "right" value depends on your usage patterns, among other
> > factors.  How to account for that in the default value?
> 
> I am not sure what you mean exactly by usage patterns.

Depending on what features and packages you use frequently, your
sessions could produce more or less garbage.  The optimal threshold
should depend on that.

> > Let's not forget that running GC while Emacs is idle will make Emacs
> > less responsive if the user starts typing while GC is in progress,
> > specially if gc-cons-threshold is high.  So it isn't entirely "free".
> 
> Maybe it would be possible to garbage collect in chunks and check
> after each chunk for input?

AFAIU, this will be hard, since Lisp data structures are very
recursive.  But maybe I'm missing something.



reply via email to

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