Performance is described here: https://magit.vc/manual/magit/Performance.html
Tip: use M-x magit-toggle-verbose-refresh
to debug performance.
What worked for me:
- Enable fsmonitor
git config core.fsmonitor true
git config core.untrackedcache true
-
Logs were slow, disabled
-g
flag (--graph
) via transient menu (UseC-x C-s
to persist this preference, should appear in~/.emacs.d/transient/values.el
) -
Remove insert tags
(remove-hook 'magit-status-headers-hook 'magit-insert-tags-header)
(remove-hook 'magit-refs-sections-hook 'magit-insert-tags)