emacs-devel
[Top][All Lists]
Advanced

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

Re: Lisp-level macro to avoid excessive GC in memory-allocating code


From: Eli Zaretskii
Subject: Re: Lisp-level macro to avoid excessive GC in memory-allocating code
Date: Fri, 01 Jul 2022 17:10:00 +0300

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>,  mattiase@acm.org,  theophilusx@gmail.com,
>   rms@gnu.org,  acm@muc.de,  emacs-devel@gnu.org
> Date: Fri, 01 Jul 2022 09:56:52 -0400
> 
> A simple `with-mostly-allocating-code` macro that increases
> `gc-cons-percentage` to 1.0 sounds a lot simpler and won't impose any
> extra burden on "normal" code.

I agree, but if we are going to introduce such an implementation, I
think we should make our handling of memory-full situation smarter.
Like perhaps keep somewhat larger memory reserve, so that if we hit
the memory limit, we could still call GC and continue, instead of
signaling a fatal error.



reply via email to

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