(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 'org)
|
||||||
(require 'eglot))
|
(require 'eglot))
|
||||||
|
|
||||||
(defun --powers-of-1024 (n start)
|
(setq gc-cons-threshold 104857600 ; ~100MiB
|
||||||
(if (= n 0)
|
read-process-output-max 5242880) ; ~5MiB
|
||||||
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
|
|
||||||
|
|
||||||
(provide 'init)
|
(provide 'init)
|
||||||
;;; init.el ends here
|
;;; init.el ends here
|
||||||
|
|||||||
Reference in New Issue
Block a user