Try to reduce memory footprint
Do this by periodically running the garbage collector. This is inspired by https://jackjamison.xyz/blog/emacs-garbage-collection/, although so far I did not experience the stuttering problems mentioned there
This commit is contained in:
parent
96ac10216e
commit
c43f7d6131
@ -12,7 +12,8 @@
|
|||||||
(add-hook 'emacs-startup-hook
|
(add-hook 'emacs-startup-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(setq gc-cons-threshold (* 100 1024 1024) ; 100mb
|
(setq gc-cons-threshold (* 100 1024 1024) ; 100mb
|
||||||
gc-cons-percentage 0.1)))
|
gc-cons-percentage 0.1)
|
||||||
|
(run-with-idle-timer 1.2 t #'garbage-collect)))
|
||||||
|
|
||||||
(setq frame-resize-pixelwise t
|
(setq frame-resize-pixelwise t
|
||||||
frame-inhibit-implied-resize t)
|
frame-inhibit-implied-resize t)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user