help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: magit lags on macOS 12


From: Ben Hancock
Subject: Re: magit lags on macOS 12
Date: Tue, 19 Dec 2023 06:44:43 -0800

Danny Freeman <danny@dfreeman.email> writes:

> zhanghj <ccsmile2008@outlook.com> writes:
>
> > I'm using GNU Emacs on macOS.
> >
> > I remember that before Emacs 26, running magit in Emacs was slow
> > because Emacs called the child process using the 'fork' syscall.
> > Later, emacs26 used 'vfork', and then it no longer stuttered.
> >
> > Now that I've upgraded my macOS to 12.7, I'm starting to see that
> > magit is starting to get sluggish again, about the same as it was
> > before Emacs 26. I tried Emacs 27 and 29, both of which are rather
> > sluggish. Why is that?
>
> Magit is also slow for me on Emacs 29 running the latest OSX, but
> it's difficult to determine why. I think part of the reason for me
> is all the other software installed by my enterprise like virus
> scanners, constantly running backups, the sorts of things I don't
> have much control over.

This may not fix your problem, but have you tried adjusting the option
`magit-diff-refine-hunk`? Docs here:

https://magit.vc/manual/magit/Diff-Options.html

Setting it to nil or t may help improve performance (though I'm not on
a Mac so I can't confirm).

Also, FWIW, while magit is a great package it might be worth
considering just using the built-in vc mode:

https://www.gnu.org/software/emacs/manual/html_node/emacs/Version-Control.html

It's quite fast and I find for most of my uses, it's just what I need.

- Ben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]