(Emacs)~init.el: don't compute membibytes on startup

I can just use the numbers computed directly without doing the
recursive call.
This commit is contained in:
2023-03-26 20:09:11 +01:00
parent 45cfda970d
commit 73973795dc

View File

@@ -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