emacs-devel
[Top][All Lists]
Advanced

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

Re: Indentation and gc


From: Eli Zaretskii
Subject: Re: Indentation and gc
Date: Mon, 13 Mar 2023 17:39:43 +0200

> From: Ihor Radchenko <yantar92@posteo.net>
> Cc: arne_bab@web.de, spacibba@aol.com, emacs-devel@gnu.org
> Date: Mon, 13 Mar 2023 15:39:44 +0000
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> >> Indeed. But despite all of the best efforts, fragmentation increases if
> >> >> we delay GCs, right?
> >> >
> >> > Not IME, no.  That's why the memory footprint of a typical
> >> > long-running session levels out.
> >> 
> >> Then what is the mechanism of gc-cons-threshold affecting the Emacs
> >> memory footprint?
> >
> > Because higher threshold increases the probability that some free
> > memory couldn't be released to the OS.
> 
> So, fragmentation? Or do we mis-communicate?
> For me, memory fragmentation is when memory cannot be released to OS
> and/or cannot be re-used to store new objects.

Fragmentation is the latter, not the former.



reply via email to

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