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 --- early-init.el | 13 +++++++++++++ init.el | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/early-init.el b/early-init.el index f53a8bc..f183fcc 100644 --- a/early-init.el +++ b/early-init.el @@ -6,6 +6,19 @@ ;; absolutely must be in Early Init. +;; --------------------------------------------------------------------- +;;; Performance hacks +;; ------------------ +;; These hacks subjectively make Emacs perform "better" +;; --------------------------------------------------------------------- + +;; Defer garbage collection until later in the startup process +(setq gc-cons-threshold most-positive-fixnum + gc-cons-percentage 0.6) + + + + ;; --------------------------------------------------------------------- ;;; UI Adjustments ;; --------------- 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 233a74dae67e1fdb08aad2fdc77d31d392fbf1ad Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Thu, 18 May 2023 00:06:13 -0400 Subject: Fix formatting for GCMH subsection --- early-init.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/early-init.el b/early-init.el index f183fcc..1f01c0a 100644 --- a/early-init.el +++ b/early-init.el @@ -12,6 +12,13 @@ ;; These hacks subjectively make Emacs perform "better" ;; --------------------------------------------------------------------- + +;; --------------------------------- +;; GCMH +;; ---- +;; Garbage Collector Magic Hack +;; --------------------------------- + ;; Defer garbage collection until later in the startup process (setq gc-cons-threshold most-positive-fixnum gc-cons-percentage 0.6) -- 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(+) 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