From: Ben Hancock <ben@benghancock.com>
To: help-gnu-emacs@gnu.org
Cc: zhanghj <ccsmile2008@outlook.com>, Danny Freeman <danny@dfreeman.email>
Subject: Re: magit lags on macOS 12
Date: Tue, 19 Dec 2023 06:44:43 -0800 [thread overview]
Message-ID: <20231219064443.9fa6c4de64ee17d6e5222de8@benghancock.com> (raw)
In-Reply-To: <87ttofmsr1.fsf@dfreeman.email>
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
prev parent reply other threads:[~2023-12-19 14:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-07 7:45 magit lags on macOS 12 zhanghj
2023-12-18 15:25 ` Danny Freeman
2023-12-19 14:44 ` Ben Hancock [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231219064443.9fa6c4de64ee17d6e5222de8@benghancock.com \
--to=ben@benghancock.com \
--cc=ccsmile2008@outlook.com \
--cc=danny@dfreeman.email \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.