perf(vc-gutter): diff-hl-update-async = t

Don't block Emacs when updating the gutter.

Ref: #7923
This commit is contained in:
Henrik Lissner 2024-07-08 22:16:05 -04:00
parent 081231b73f
commit f2696d7302
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -61,6 +61,8 @@
(setq vc-git-diff-switches '("--histogram")) (setq vc-git-diff-switches '("--histogram"))
;; PERF: Slightly more conservative delay before updating the diff ;; PERF: Slightly more conservative delay before updating the diff
(setq diff-hl-flydiff-delay 0.5) ; default: 0.3 (setq diff-hl-flydiff-delay 0.5) ; default: 0.3
;; PERF: don't block Emacs when updating vc gutter
(setq diff-hl-update-async t)
;; UX: get realtime feedback in diffs after staging/unstaging hunks. ;; UX: get realtime feedback in diffs after staging/unstaging hunks.
(setq diff-hl-show-staged-changes nil) (setq diff-hl-show-staged-changes nil)