increase gc memory
This commit is contained in:
parent
e967e5f44f
commit
b2f594cee6
5
init.org
5
init.org
|
@ -59,8 +59,9 @@ tangled, and the tangled file is compiled."
|
||||||
** Startup performance
|
** 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.
|
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
|
#+begin_src emacs-lisp
|
||||||
(setq gc-cons-percentage 0.6)
|
(setq gc-cons-percentage 0.6)
|
||||||
(setq read-process-output-max (* 1024 1024)) ;; 1mb
|
(setq gc-cons-threshold 2000000000)
|
||||||
|
(setq read-process-output-max (* 20 1024 1024)) ;; 1mb
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Use GC magic hack.
|
Use GC magic hack.
|
||||||
|
|
Loading…
Reference in a new issue