increase gc memory

This commit is contained in:
janis 2025-09-15 21:54:43 +02:00
parent e967e5f44f
commit b2f594cee6
Signed by: janis
SSH key fingerprint: SHA256:bB1qbbqmDXZNT0KKD5c2Dfjg53JGhj7B3CFcLIzSqq8

View file

@ -59,8 +59,9 @@ tangled, and the tangled file is compiled."
** Startup performance
Usually, I like to run emacs as a daemon and only ever open new emacs clients, but that often doesn't work properly and definitely doesn't work when actively working on an emacs config, so this snippet might be useful.
#+begin_src emacs-lisp
(setq gc-cons-percentage 0.6)
(setq read-process-output-max (* 1024 1024)) ;; 1mb
(setq gc-cons-percentage 0.6)
(setq gc-cons-threshold 2000000000)
(setq read-process-output-max (* 20 1024 1024)) ;; 1mb
#+end_src
Use GC magic hack.