Skip to content

Instantly share code, notes, and snippets.

@gamb
Last active September 6, 2023 11:42
Show Gist options
  • Save gamb/b94b71b657985b0ab300ae42275fdd9a to your computer and use it in GitHub Desktop.
Save gamb/b94b71b657985b0ab300ae42275fdd9a to your computer and use it in GitHub Desktop.

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:

  1. Enable fsmonitor
git config core.fsmonitor true
git config core.untrackedcache true
  1. Logs were slow, disabled -g flag (--graph) via transient menu (Use C-x C-s to persist this preference, should appear in ~/.emacs.d/transient/values.el)

  2. Remove insert tags

(remove-hook 'magit-status-headers-hook 'magit-insert-tags-header)
(remove-hook 'magit-refs-sections-hook 'magit-insert-tags)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment