Magit status is slow on Linux but fast on MacOS

2018-10-22 00:44:43

In OSX El Capitan, I am using Magit 20171026.217, Git 2.10.1 (Apple Git-78), Emacs 25.1.1, darwin.

In CentOS Release 6.6, I'm using Magit 20180903.2339, Git 2.13.1, Emacs 26.1, gnu/linux.

For the same 40 MByte git repo, the magit status buffer requires 4 seconds to appear in linux but only 0.5 seconds in Mac OS.

There was a one-line change in one file in the linux repo.

In CentOS, my .emacs contains the following commands from the magit performance page and elsewhere:

;; https://magit.vc/manual/magit/Performance.html

(setq magit-refresh-status-buffer nil)

(setq magit-diff-highlight-indentation nil)

(setq magit-diff-highlight-trailing nil)

(setq magit-diff-paint-whitespace nil)

(setq magit-diff-highlight-hunk-body nil)

(setq magit-diff-refine-hunk nil)

(setq magit-revision-insert-related-refs nil)

(remove-hook 'magit-refs-sections-hook 'magit-insert-tags)

(remove-hook 'server-switch-hook 'magit-commit-diff)

(setq vc-handled-