From b755888f8be65fed142cf99d565e6d4bd192b322 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 28 Nov 2018 01:35:55 +0800 Subject: [PATCH] Address bad performance issue on Windows. https://github.com/seagle0128/doom-modeline/issues/37 --- doom-modeline.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doom-modeline.el b/doom-modeline.el index e760757..aeedc52 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -112,6 +112,10 @@ The icons may not be showed correctly in terminal and on Windows.") ;; compatibility ;; +;; Don’t compact font caches during GC. +(if (eq system-type 'windows-nt) + (setq inhibit-compacting-font-caches t)) + ;;`file-local-name' is introduced in 25.2.2. (unless (fboundp 'file-local-name) (defun file-local-name (file)