aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-03-26 20:09:11 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-03-26 20:19:02 +0100
commit73973795dc210fef4e6e295afc71479e67886153 (patch)
tree80adbd7a3c1359f79c04f94cb9ffe12610c417d9 /Emacs/.config
parent45cfda970d36f6fe2fd4d3b61c4962f695f52c0f (diff)
downloaddotfiles-73973795dc210fef4e6e295afc71479e67886153.tar.gz
dotfiles-73973795dc210fef4e6e295afc71479e67886153.tar.bz2
dotfiles-73973795dc210fef4e6e295afc71479e67886153.zip
(Emacs)~init.el: don't compute membibytes on startup
I can just use the numbers computed directly without doing the recursive call.
Diffstat (limited to 'Emacs/.config')
-rw-r--r--Emacs/.config/emacs/init.el10
1 files changed, 2 insertions, 8 deletions
diff --git a/Emacs/.config/emacs/init.el b/Emacs/.config/emacs/init.el
index 20001ff..a210b5c 100644
--- a/Emacs/.config/emacs/init.el
+++ b/Emacs/.config/emacs/init.el
@@ -102,14 +102,8 @@
(require 'org)
(require 'eglot))
-(defun --powers-of-1024 (n start)
- (if (= n 0)
- start
- (--powers-of-1024 (- n 1) (* 1024 start))))
-
-(let ((mebibyte (--powers-of-1024 2 1)))
- (setq gc-cons-threshold (* 100 mebibyte) ; ~100MiB
- read-process-output-max (* 5 mebibyte))) ; ~5MiB
+(setq gc-cons-threshold 104857600 ; ~100MiB
+ read-process-output-max 5242880) ; ~5MiB
(provide 'init)
;;; init.el ends here