From 87b165fdfba93b9578c1131f016c3048d3c9b621 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 23 Jul 2022 16:40:08 +0200 Subject: [PATCH] perf(cli): gc-cons-percentage = 1.0 This is the new default for this variable in 29 (for batch sessions); I'm backporting it because it's sensible. Ref: https://github.com/emacs-mirror/emacs/blob/master/etc/NEWS#L120-L125 --- core/core-cli.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-cli.el b/core/core-cli.el index 22947b2d2..1ad144b5d 100644 --- a/core/core-cli.el +++ b/core/core-cli.el @@ -33,7 +33,8 @@ ;; The garbage collector isn't so important during CLI ops. A higher threshold ;; makes it 15-30% faster, but set it too high and we risk runaway memory usage ;; in longer sessions. -(setq gc-cons-threshold 134217728) ; 128mb +(setq gc-cons-threshold 134217728 ; 128mb + gc-cons-percentage 1.0) ;; Ensure errors are sufficiently detailed from this point on. (setq debug-on-error t)