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:
Daniel Borchmann 2025-05-18 10:43:42 +02:00
parent 96ac10216e
commit c43f7d6131
No known key found for this signature in database
GPG Key ID: 50EA937BF472ADD1

View File

@ -11,8 +11,9 @@
(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)