diff options
| author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-05-18 00:49:35 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-18 00:49:35 -0400 |
| commit | c5b82c12aa13d7125552f29c8f9fd2c5c5114d94 (patch) | |
| tree | 3d39fabb05f3703d659aa623411eb29d2264edb1 | |
| parent | Add all the icons (diff) | |
| parent | Add `async` package and enable `async-bytecomp-package-mode` (diff) | |
| download | mmosmacs-c5b82c12aa13d7125552f29c8f9fd2c5c5114d94.tar.gz mmosmacs-c5b82c12aa13d7125552f29c8f9fd2c5c5114d94.tar.bz2 mmosmacs-c5b82c12aa13d7125552f29c8f9fd2c5c5114d94.zip | |
PR #25: Merge `performance-improvements` branch to `stable` branch
| -rw-r--r-- | early-init.el | 20 | ||||
| -rw-r--r-- | init.el | 32 |
2 files changed, 52 insertions, 0 deletions
diff --git a/early-init.el b/early-init.el index f53a8bc..1f01c0a 100644 --- a/early-init.el +++ b/early-init.el | |||
| @@ -7,6 +7,26 @@ | |||
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | ;; --------------------------------------------------------------------- | 9 | ;; --------------------------------------------------------------------- |
| 10 | ;;; Performance hacks | ||
| 11 | ;; ------------------ | ||
| 12 | ;; These hacks subjectively make Emacs perform "better" | ||
| 13 | ;; --------------------------------------------------------------------- | ||
| 14 | |||
| 15 | |||
| 16 | ;; --------------------------------- | ||
| 17 | ;; GCMH | ||
| 18 | ;; ---- | ||
| 19 | ;; Garbage Collector Magic Hack | ||
| 20 | ;; --------------------------------- | ||
| 21 | |||
| 22 | ;; Defer garbage collection until later in the startup process | ||
| 23 | (setq gc-cons-threshold most-positive-fixnum | ||
| 24 | gc-cons-percentage 0.6) | ||
| 25 | |||
| 26 | |||
| 27 | |||
| 28 | |||
| 29 | ;; --------------------------------------------------------------------- | ||
| 10 | ;;; UI Adjustments | 30 | ;;; UI Adjustments |
| 11 | ;; --------------- | 31 | ;; --------------- |
| 12 | ;; The primary goal of this Section is to prevent Emacs from flashing or | 32 | ;; The primary goal of this Section is to prevent Emacs from flashing or |
| @@ -59,6 +59,38 @@ | |||
| 59 | 59 | ||
| 60 | 60 | ||
| 61 | ;; --------------------------------------------------------------------- | 61 | ;; --------------------------------------------------------------------- |
| 62 | ;; Performance hacks | ||
| 63 | ;; ----------------- | ||
| 64 | ;; These hacks subjectively make Emacs perform "better" | ||
| 65 | ;; --------------------------------------------------------------------- | ||
| 66 | |||
| 67 | ;; Garbage Collector Magic Hack | ||
| 68 | (use-package gcmh | ||
| 69 | :straight t | ||
| 70 | :defer t | ||
| 71 | :init | ||
| 72 | (setq gcmh-idle-delay 15 | ||
| 73 | gcmh-idle-delay-factor 10 | ||
| 74 | gcmh-high-cons-threshold (* 16 (* 1024 1024))) ;16mb | ||
| 75 | :hook (after-init-hook . gcmh-mode)) | ||
| 76 | |||
| 77 | |||
| 78 | ;; --------------------------------- | ||
| 79 | ;; Async | ||
| 80 | ;; ----- | ||
| 81 | ;; Asynchronous processing of things | ||
| 82 | ;; --------------------------------- | ||
| 83 | |||
| 84 | ;; Async package | ||
| 85 | (use-package async | ||
| 86 | :straight t | ||
| 87 | :config | ||
| 88 | (setq async-bytecomp-package-mode t)) | ||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | |||
| 93 | ;; --------------------------------------------------------------------- | ||
| 62 | ;;; Graphical Environment | 94 | ;;; Graphical Environment |
| 63 | ;; ---------------------- | 95 | ;; ---------------------- |
| 64 | ;; MMOSMacs is intended to be my entire Desktop Environment. | 96 | ;; MMOSMacs is intended to be my entire Desktop Environment. |