[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Larger GC thresholds for non-interactive Emacs
From: |
Lars Ingebrigtsen |
Subject: |
Re: Larger GC thresholds for non-interactive Emacs |
Date: |
Sat, 18 Jun 2022 14:45:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> The first GC seems to happen before we set percentage to 2.0 (so
> apparently all compilation processes performed at least one GC before we
> set percentage to 2.0 and then the majority of them performed no further
> GC before exiting).
Hm, interesting...
> [ So if we set percentage to 2.0 a bit earlier than what happens with
> `--eval` we may gain yet a bit more time. ]
This should probably be early enough, I guess?
diff --git a/src/emacs.c b/src/emacs.c
index 43b9901e08..33ad9c6b8d 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1620,6 +1620,7 @@ main (int argc, char **argv)
if (argmatch (argv, argc, "-batch", "--batch", 5, NULL, &skip_args)
|| only_version)
{
+ Vgc_cons_percentage = make_float (2.0);
noninteractive = 1;
Vundo_outer_limit = Qnil;
}
> 9.5M is actually exactly 10000000 bytes so I suspect these come from
> either `cedet/semantic.el` or `international/mule-cmds.el` which both
> set gc-cons-threshold to (max gc-cons-threshold 10000000).
Ah, I see. Perhaps those should increase that even more if it still
leads to 18 GCs?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: Larger GC thresholds for non-interactive Emacs, (continued)
- Re: Larger GC thresholds for non-interactive Emacs, Stefan Monnier, 2022/06/17
- Re: Larger GC thresholds for non-interactive Emacs, Lars Ingebrigtsen, 2022/06/17
- Re: Larger GC thresholds for non-interactive Emacs, Alan Mackenzie, 2022/06/17
- Re: Larger GC thresholds for non-interactive Emacs, Stefan Monnier, 2022/06/17
- Re: Larger GC thresholds for non-interactive Emacs, Lars Ingebrigtsen, 2022/06/17
- Re: Larger GC thresholds for non-interactive Emacs, Stefan Monnier, 2022/06/17
- Re: Larger GC thresholds for non-interactive Emacs, Eli Zaretskii, 2022/06/18
- Re: Larger GC thresholds for non-interactive Emacs,
Lars Ingebrigtsen <=
- Re: Larger GC thresholds for non-interactive Emacs, Stefan Monnier, 2022/06/18
- Re: Larger GC thresholds for non-interactive Emacs, Stefan Monnier, 2022/06/17
- Re: Larger GC thresholds for non-interactive Emacs, Lars Ingebrigtsen, 2022/06/18
- Re: Larger GC thresholds for non-interactive Emacs, Stefan Monnier, 2022/06/18
- Re: Larger GC thresholds for non-interactive Emacs, Lars Ingebrigtsen, 2022/06/19
- Re: Larger GC thresholds for non-interactive Emacs, Eli Zaretskii, 2022/06/18
- Re: Larger GC thresholds for non-interactive Emacs, Lars Ingebrigtsen, 2022/06/19
- Re: Larger GC thresholds for non-interactive Emacs, Eli Zaretskii, 2022/06/19
- Re: Larger GC thresholds for non-interactive Emacs, Lynn Winebarger, 2022/06/20
- Re: Larger GC thresholds for non-interactive Emacs, Lynn Winebarger, 2022/06/21