From 869905fceae29ec2d00cb0f37cd55f0b75d60788 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 21 Dec 2020 22:55:32 -0600 Subject: Speed up init by adjusting garbage collection et al --- config.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/config.org b/config.org index 0bcb298..b1c138b 100644 --- a/config.org +++ b/config.org @@ -1413,6 +1413,14 @@ from [[https://karthinks.com/software/more-batteries-included-with-emacs/#regexp ;; init.el -*- lexical-binding: t -*- #+end_src +**** Speed up init + +#+begin_src emacs-lisp + (setq gc-cons-threshold most-positive-fixnum) + (defvar old-file-name-handler file-name-handler-alist) + (setq file-name-handler-alist nil) +#+end_src + **** Load config inspired by [[https://protesilaos.com/dotemacs/#h:584c3604-55a1-49d0-9c31-abe46cb1f028][Protesilaos Stavrou]]. @@ -1428,6 +1436,14 @@ from [[https://karthinks.com/software/more-batteries-included-with-emacs/#regexp (org-babel-load-file conf-org))) #+end_src +**** Reset for normal operation + +#+begin_src emacs-lisp + (setq gc-cons-threshold 16777216 ; 16mb + gc-cons-percentage 0.1 + file-name-handler-alist old-file-name-handler) +#+end_src + *** early-init.el :PROPERTIES: :header-args: :tangle early-init.el -- cgit 1.4.1-21-gabe81