[Top][All Lists]

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

Re: [Emacs-diffs] master 5018b66 4/6: Inhibit GC after inhibit_garbage_c

From: Stefan Monnier
Subject: Re: [Emacs-diffs] master 5018b66 4/6: Inhibit GC after inhibit_garbage_collection
Date: Sun, 21 Jul 2019 10:01:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>     * src/alloc.c (garbage_collection_inhibited): New var.

While I like the idea, I worry about its impact on performance:
when garbage_collection_inhibited is true and

       consing_since_gc > gc_cons_threshold
       && consing_since_gc > gc_relative_threshold

`maybe_gc` will constantly call `garbage_collect`.  Maybe we could
circumvent this by temporarily bumping gc_relative_threshold?


reply via email to

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