From 0e9c5bba140264efb1cbdb79ccf04c647e834d55 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Wed, 17 May 2023 23:51:11 -0400 Subject: Add the Garbage Collector Magic Hack --- init.el | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 209a9a4..74e9d8a 100644 --- a/init.el +++ b/init.el @@ -58,6 +58,25 @@ +;; --------------------------------------------------------------------- +;; Performance hacks +;; ----------------- +;; These hacks subjectively make Emacs perform "better" +;; --------------------------------------------------------------------- + +;; Garbage Collector Magic Hack +(use-package gcmh + :straight t + :defer t + :init + (setq gcmh-idle-delay 15 + gcmh-idle-delay-factor 10 + gcmh-high-cons-threshold (* 16 (* 1024 1024))) ;16mb + :hook (after-init-hook . gcmh-mode)) + + + + ;; --------------------------------------------------------------------- ;;; Graphical Environment ;; ---------------------- -- cgit v1.2.3 From b70f8426a4ffebaa4e909f3ef317db8bd216175a Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Thu, 18 May 2023 00:23:17 -0400 Subject: Add `async` package and enable `async-bytecomp-package-mode` --- init.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 74e9d8a..de36aba 100644 --- a/init.el +++ b/init.el @@ -75,6 +75,19 @@ :hook (after-init-hook . gcmh-mode)) +;; --------------------------------- +;; Async +;; ----- +;; Asynchronous processing of things +;; --------------------------------- + +;; Async package +(use-package async + :straight t + :config + (setq async-bytecomp-package-mode t)) + + ;; --------------------------------------------------------------------- -- cgit v1.2.3