(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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user