From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP Date: Fri, 06 Sep 2024 16:09:23 +0200 Message-ID: <87le0450x8.fsf@gmx.de> References: <87o75241qh.fsf@gmail.com> <86plpi2ixa.fsf@gnu.org> <87seudke20.fsf@gmail.com> <8634md2vc2.fsf@gnu.org> <87h6asrk42.fsf@gmx.de> <86a5gk28ht.fsf@gnu.org> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37052"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: suhailsingh247@gmail.com, 73046@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 06 16:10:21 2024 Return-path: Envelope-to: geb-bug-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 1smZfJ-0009TI-0d for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Sep 2024 16:10:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smZf2-0006mA-SG; Fri, 06 Sep 2024 10:10:05 -0400 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 1smZf1-0006lO-3P for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 10:10:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1smZf0-0004cJ-OT for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 10:10:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=oddASl3fIeYkqfrPucPTZIEUnU+IWWT3gF3ltMABIkA=; b=VCb7h+XP9iTv4Kp96RY2MH3huSvMO0yTzV+5OMZP+Wu2AyXe+qZEQJqKy/xqKajnDdKOK0hExx8TfaMf0ZYnZIElNDmYy1EyciS95Rm4ndyky3RpQqhXzVwEcbnf3x15TJPTRbvdmnUpb+NUzJq3BPvzQyS9A2BJpL1rKaYvkMF2zkRablQ5gbnRUN6ML4otABjc/caG8GuTtHrJtDWt1/lgmehibV1odAF19icOFBTOeSaTyC9xFIKdGLl+8gC7v5R14d2vohHSzeTpDmIy56U+DKrK12Jd6Tp+CnZntiRFukRQ0iDg+ubHhyy6a8vxc692hrfes+W0Grqt7QD3XA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smZf0-0001b7-5F for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 10:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Sep 2024 14:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73046 X-GNU-PR-Package: emacs Original-Received: via spool by 73046-submit@debbugs.gnu.org id=B73046.17256317836099 (code B ref 73046); Fri, 06 Sep 2024 14:10:02 +0000 Original-Received: (at 73046) by debbugs.gnu.org; 6 Sep 2024 14:09:43 +0000 Original-Received: from localhost ([127.0.0.1]:53705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smZeh-0001aJ-Eo for submit@debbugs.gnu.org; Fri, 06 Sep 2024 10:09:43 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:59071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smZec-0001ZR-Ue for 73046@debbugs.gnu.org; Fri, 06 Sep 2024 10:09:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1725631766; x=1726236566; i=michael.albinus@gmx.de; bh=oddASl3fIeYkqfrPucPTZIEUnU+IWWT3gF3ltMABIkA=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=UI8CUNlsmdHvVlNPeJAsnYW6+RPR7Ah7I2dLhfXHZvitOS2rZMkQr1Sy9aC+znba qyCxnKqyLzyFHzwIyrTAeY4YwMzc42eu3H2hTQeLSfaxrnrsLspBhSGqs9L06fQg6 +OI2H+LnxKufiY8wVykRFny9tZiiDb0vjxt7mExqjibZ9z6H1f9jDgYvP1hXELyS+ DCmoh8lFotMnY+GsR+fJzWLzQ2XNiUTePGsKp9WtnvNMk+XbFXzouvICwTsOUXmus m7Rs9tXeYEzgUDUY5zU/geeg9a4/x4yep7ZXuSW6xI7+ovtFb9IsHPuCZlOFOfLyl miBS/9e5yC1Dq6feuQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mf0BM-1s6NLA2bwA-00nSUc; Fri, 06 Sep 2024 16:09:26 +0200 In-Reply-To: <86a5gk28ht.fsf@gnu.org> (Eli Zaretskii's message of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bOqzlI4nmfYmgGr9ybt7/VPW7wri2yJzilrYV5yELFos0anYp625Sasx X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291315 Archived-At: Eli Zaretskii writes: Hi Eli, >> > FWIW, I cannot reproduce this: I tried Dired on a remote host with >> > which I have connection that is quite slow, and saw neither high CPU >> > usage nor a significant delay in displaying a Dired buffer. >> >> It seems to be related to font-locking, indeed. See variable >> `dired-font-lock-keywords'. It specifies face recognition running basic >> file oprtations. For example, ";; Broken Symbolic link" calls >> `file-truename' and `file-exists-p', while "Symbolic link to a director= y" >> and ";; Symbolic link to a non-directory" invoke `file-truename' and >> `file-directory-p'. > > But font-lock is ON by default, so what I saw also includes this, > right? Sure. But we don't know the exact setting of the OP. The connection could be extremely slow for him, Tramp's cache might be disabled, whatever. Perhaps it's worth to rerun the test with "emacs -Q". >> I believe it would be helpful to suppress these checks via a user >> option. > > What's wrong with "M-x font-lock-mode RET"? You would deactivate all fontifications, not only the ones related to symlinks. And you must do this in a hook of the dired buffer, before fontification happens. There exist `dired-hide-details-mode', which I don't know. Perhaps enabling it in time would do the job? Best regards, Michael.