mirror of
https://github.com/protesilaos/dotfiles.git
synced 2026-09-10 07:16:20 -04:00
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:
parent
23248a32f0
commit
64de754d02
|
|
@ -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)))
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue