emacs: lower the gc threshold and percentage

I have found that higher values actually block Emacs when they are
reached. So I will keep the lower numbers and continue experimenting
with them.
This commit is contained in:
Protesilaos Stavrou 2024-02-29 10:02:33 +02:00
parent 23248a32f0
commit 64de754d02
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 4 additions and 4 deletions

View file

@ -65,8 +65,8 @@ Simplified version of `add-to-list'."
(add-hook 'emacs-startup-hook
(lambda ()
(setq gc-cons-threshold (* 1024 1024 20)
gc-cons-percentage 0.2
(setq gc-cons-threshold (* 1000 1000 8)
gc-cons-percentage 0.1
file-name-handler-alist prot-emacs--file-name-handler-alist
vc-handled-backends prot-emacs--vc-handled-backends)))

View file

@ -358,8 +358,8 @@ once Emacs is done loading.
(add-hook 'emacs-startup-hook
(lambda ()
(setq gc-cons-threshold (* 1024 1024 20)
gc-cons-percentage 0.2
(setq gc-cons-threshold (* 1000 1000 8)
gc-cons-percentage 0.1
file-name-handler-alist prot-emacs--file-name-handler-alist
vc-handled-backends prot-emacs--vc-handled-backends)))
#+end_src