mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
Move gc treshold to early-init, and keep it high-ish
This commit is contained in:
parent
f2437ada46
commit
7b8b524d8f
7
init.org
7
init.org
@ -162,12 +162,9 @@
|
||||
initialization. Here, we set the ~gc-cons-threshold~ to a ridiculously large
|
||||
number, and restore the default value after initialization.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
#+begin_src emacs-lisp :tangle early-init.el
|
||||
|
||||
(let ((old-gc-treshold gc-cons-threshold))
|
||||
(setq gc-cons-threshold most-positive-fixnum)
|
||||
(add-hook 'after-init-hook
|
||||
(lambda () (setq gc-cons-threshold old-gc-treshold))))
|
||||
(setq gc-cons-threshold (* 100 1024 1024))
|
||||
|
||||
#+end_src
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user