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: Sat, 11 Mar 2023 15:46:30 +0200

> From: Ihor Radchenko <yantar92@posteo.net>
> Cc: spacibba@aol.com, arne_bab@web.de, emacs-devel@gnu.org
> Date: Sat, 11 Mar 2023 13:38:54 +0000
> 
> What about expanding the relevant paragraph in the manual with examples
> when increasing the threshold too much is dangerous?
> 
>      The initial threshold value is ‘GC_DEFAULT_THRESHOLD’, defined in
>      ‘alloc.c’.  Since it’s defined in ‘word_size’ units, the value is
>      400,000 for the default 32-bit configuration and 800,000 for the
>      64-bit one.  If you specify a larger value, garbage collection will
>      happen less often.  This reduces the amount of time spent garbage
>      collecting, but increases total memory use.  You may want to do
>      this when running a program that creates lots of Lisp data.
>      However, we recommend against increasing the threshold for
>      prolonged periods of time, and advise that you never set it higher
>      than needed for the program to run in reasonable time.  Using
>      thresholds higher than necessary could potentially cause
>      system-wide memory pressure, and should therefore be avoided.

What is there to expand?  It already says all that people need to
understand before they play dangerous games with the threshold.



reply via email to

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