all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danny Freeman <danny@dfreeman.email>
To: zhanghj <ccsmile2008@outlook.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: magit lags on macOS 12
Date: Mon, 18 Dec 2023 10:25:34 -0500	[thread overview]
Message-ID: <87ttofmsr1.fsf@dfreeman.email> (raw)
In-Reply-To: <OS3P286MB2199B77E891CF6BF41F4D4E0A88BA@OS3P286MB2199.JPNP286.PROD.OUTLOOK.COM>


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.

Making sure Magit is using the version of git installed by apple/xcode
at /usr/bin/git (NOT the one from homebrew or other package managers)
seems to help with slowness. Git itself is pretty slow on OSX, but the
one apple provides seems to be the fastest.

Using apple's git won't completely resolve the slowness, but it may
help a little.

If you find another fix please post here because the speed of Emacs on
my macbook is almost unbearable.

-- 
Danny Freeman



  reply	other threads:[~2023-12-18 15:25 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 [this message]
2023-12-19 14:44   ` Ben Hancock

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=87ttofmsr1.fsf@dfreeman.email \
    --to=danny@dfreeman.email \
    --cc=ccsmile2008@outlook.com \
    --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.