From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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:54:06 +0300 Message-ID: <86a5gk28ht.fsf@gnu.org> References: <87o75241qh.fsf@gmail.com> <86plpi2ixa.fsf@gnu.org> <87seudke20.fsf@gmail.com> <8634md2vc2.fsf@gnu.org> <87h6asrk42.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10604"; mail-complaints-to="usenet@ciao.gmane.io" Cc: suhailsingh247@gmail.com, 73046@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 06 15:55:22 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 1smZQn-0002XZ-Uz for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Sep 2024 15:55:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smZQX-0001ou-Cd; Fri, 06 Sep 2024 09:55: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 1smZQV-0001jO-Aq for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 09:55: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 1smZQV-00034B-0l for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 09:55:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=apYzO61O09P+hpCY0k5toq6qe39kIo7gBPh6EYmzjO8=; b=eXfI1ma61/xWUryv3GYCVsd3TkNAOQ88TD5Y5MGFswMKRrY8nV6gCEWlJqRbC+KNwVaBT1a7W5qMXr3c5KX2yza0d9s5KCPMGSyI65gIbjqfZmLt2jAM98GWJUabfesj23dMeg7Caty3X6CTtQAT6eWVqAWMJhUCxaWW1FTMD8zPwQwEJ9MWGcqpSKdPTbELNZi2BDnrIHafW1NCOk+JHiwOah3jT0U3tHfnNZDaMciMHBVzaQVh/ZahB0tlybRcVLLCeLVTMqndZRBy8DXbkD8UaUVEKEcO1XrlUOvvMrrDOzqePws3+PzML4nJUumXhioayaogI1oyqUu9f6BBUA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smZQU-0000ST-6M for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 09:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Sep 2024 13:55: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.17256308821717 (code B ref 73046); Fri, 06 Sep 2024 13:55:02 +0000 Original-Received: (at 73046) by debbugs.gnu.org; 6 Sep 2024 13:54:42 +0000 Original-Received: from localhost ([127.0.0.1]:52510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smZQA-0000Rd-0S for submit@debbugs.gnu.org; Fri, 06 Sep 2024 09:54:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smZQ7-0000RP-Cy for 73046@debbugs.gnu.org; Fri, 06 Sep 2024 09:54:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smZQ1-0002wY-Om; Fri, 06 Sep 2024 09:54:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=apYzO61O09P+hpCY0k5toq6qe39kIo7gBPh6EYmzjO8=; b=e4Pqo/ogoEhz AdBdOaWxduZjtJ262Tl5W2FNzREjn+G7peNuRH0lMuQW4Hna+2HDlVPzHaRokhigj+2jZgXbWyos3 fPdxPwTnsoGaY7A5MTYiHT86DN4845n/bcLk9WvOL//EnY7CzLafC28lyoKL/K1CRgAm/xrg3s019 1XxRfHG+RGNpLr1t1L3kPozwd8iHnWiB1O0KARLZe8Xj3z11CVbq9V1X2kln8zdU3UIKlmK/6cR9v swRGOtC1U5d1oj5/F7V8yOeBEYMNsO+NfSiNmMFdeNkd/L7uXlX1bM6fK8z/uYDZXVo7Vpb0eG889 nzSyAHm6aJ/BuvqGXSUGrQ==; In-Reply-To: <87h6asrk42.fsf@gmx.de> (message from Michael Albinus on Fri, 06 Sep 2024 15:23:57 +0200) 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:291313 Archived-At: > From: Michael Albinus > Cc: Suhail Singh , 73046@debbugs.gnu.org > Date: Fri, 06 Sep 2024 15:23:57 +0200 > > > 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 directory" > 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? > I believe it would be helpful to suppress these checks via a user > option. What's wrong with "M-x font-lock-mode RET"?