From e8745cf990aa824d4f0fa8a21130950ba432b785 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sat, 27 Jul 2024 09:31:06 -0400 Subject: [PATCH] windows performance tweaks --- common/_global.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/common/_global.el b/common/_global.el index e5d3663..88a2293 100644 --- a/common/_global.el +++ b/common/_global.el @@ -1,3 +1,18 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; windows performance tweaks, add to top of init.el as well +(when (eq system-type 'windows-nt) +; https://lists.gnu.org/archive/html/bug-gnu-emacs/2012-10/msg00274.html +; https://gioorgi.com/2013/solving-emacs-freeze-andor-slowdown-on-windows7/ +(setq w32-get-true-file-attributes nil) + +; https://www.reddit.com/r/emacs/comments/c9ef5i/comment/esx5ndr/ +(setq inhibit-compacting-font-caches t) + +; https://www.reddit.com/r/emacs/comments/c9ef5i/comment/esx5snw/ +(when (boundp 'w32-pipe-read-delay) +(setq w32-pipe-read-delay 0)) +) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Packages related (require 'package)