From 73973795dc210fef4e6e295afc71479e67886153 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 26 Mar 2023 20:09:11 +0100 Subject: (Emacs)~init.el: don't compute membibytes on startup I can just use the numbers computed directly without doing the recursive call. --- Emacs/.config/emacs/init.el | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'Emacs/.config/emacs') 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 -- cgit v1.2.3-13-gbd6f