From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Danny Freeman Newsgroups: gmane.emacs.help Subject: Re: magit lags on macOS 12 Date: Mon, 18 Dec 2023 10:25:34 -0500 Message-ID: <87ttofmsr1.fsf@dfreeman.email> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4292"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: zhanghj Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 18 16:33:22 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rFFcN-0000ng-SW for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 18 Dec 2023 16:33:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rFFbR-0003OP-VR; Mon, 18 Dec 2023 10:32:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rFFbQ-0003OH-BO for help-gnu-emacs@gnu.org; Mon, 18 Dec 2023 10:32:20 -0500 Original-Received: from out-177.mta0.migadu.com ([91.218.175.177]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rFFbN-00051J-3G for help-gnu-emacs@gnu.org; Mon, 18 Dec 2023 10:32:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dfreeman.email; s=key1; t=1702913528; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LLF6SzVBDeHn3WLbgWQC2lqBVNyokYEA7RQ/Y4QhSlY=; b=CEOy77m3M8ulFvLl5l2YgsVEoAAl+EeOaWPZSn3L+g5ggf3FDKTmgZGu6qhAtarMggazYk XsJjz1WEVc+VsybMeh/H2c1C0eX8IFhHMf2EpCU55reR6DXGGLdlJTDkoaB2ysuNA9gnmS rn50tsW6m0+WSSm5JoK2SIfogC3ye8w= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-reply-to: X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=91.218.175.177; envelope-from=danny@dfreeman.email; helo=out-177.mta0.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145656 Archived-At: zhanghj 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