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
This commit is contained in:
Henrik Lissner 2022-07-23 16:40:08 +02:00
parent 8308d68b61
commit 87b165fdfb
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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)