From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#59151: Major performance issues in dired over ssh (Tramp) when remote directory contains symlinks Date: Thu, 10 Nov 2022 10:16:48 +0100 Message-ID: <87k043xj7j.fsf@gmx.de> References: <907b450b-c502-a09c-0f81-0ff57e3a3bfa@mikpom.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12133"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59151@debbugs.gnu.org To: Mikhail Pomaznoy Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 10 10:18:38 2022 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 1ot3hm-0002ys-Mn for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Nov 2022 10:18:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ot3hF-0007xJ-SL; Thu, 10 Nov 2022 04:18:05 -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 1ot3hF-0007x4-0x for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2022 04:18:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ot3hC-0000he-Pc for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2022 04:18:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ot3hC-0003qW-GR for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2022 04:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Nov 2022 09:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59151 X-GNU-PR-Package: emacs Original-Received: via spool by 59151-submit@debbugs.gnu.org id=B59151.166807182214716 (code B ref 59151); Thu, 10 Nov 2022 09:18:02 +0000 Original-Received: (at 59151) by debbugs.gnu.org; 10 Nov 2022 09:17:02 +0000 Original-Received: from localhost ([127.0.0.1]:41875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ot3gE-0003p7-9I for submit@debbugs.gnu.org; Thu, 10 Nov 2022 04:17:02 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:40225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ot3gA-0003oh-Sz for 59151@debbugs.gnu.org; Thu, 10 Nov 2022 04:17:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1668071811; bh=AJ12XrAhEA9AwiZJ0KNW3ESBin3sUaSV9V8KPI6bYkM=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=iHhh8yDQx5pK+o/5dvKGgvrlLipLQu98aV/ieMXJMECTIc8boVT0qjqMjZ7g+xkWK oFsTR9Rk9uNL5WuaOBnyGOT0YA5Gp8HOPRo+2QexuVPWJCzaFWUl2y3UyEhNTNWJpt 7x5NOwhFQrZmuOiYknoIYog3KNGTs434PG4zousWcEjq3WVeL1l/49uUTfTgS+isCS 4fu9smkja3XmNam5V0cXi8RmL3sxk7uJBm0VWoQz8wi/bh2Tc8Kr96hD2QE1UahNtE +oO6sjEwzpvNUKamw6Kd3hbXDTgNZss4MZn+c9ZYOAfiHf6wJvZaEM4Qj/UE/rBnKw nNUdcmUnKWweA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.18]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MtfJd-1p7zQr3yGN-00vBwo; Thu, 10 Nov 2022 10:16:51 +0100 In-Reply-To: <907b450b-c502-a09c-0f81-0ff57e3a3bfa@mikpom.ru> (Mikhail Pomaznoy's message of "Wed, 9 Nov 2022 21:45:35 +0700") X-Provags-ID: V03:K1:ArMBKC4/t3F3/uqgdE21q4J+/Gi2eYiMwdWw+9sk2CaV6txZIR+ mrMal06X0Tl+ykxzx8NrjFRFG9LoLspVzLm6jfXHmZ3FTjNi4xHzAlysy3xkA5SFzqp+HdZ Ndk2bg3hGxxvPxdaLxumVYF86mB8ypwFKmaitSqtxYh8Kloe6OwZSbSt8C31pNjPA2ImL0o tgJNHpNvkf5Haugjyz+Bw== UI-OutboundReport: notjunk:1;M01:P0:DLvJR256DFs=;b0c0/KM/WNgzwsMImvj0ig9iwBC CnNT7qzQSdmuy9xXUwFSgbv9nZmNx4Pc3w1iHhfmaArgnt9T96UGjI+jo1Bx2M7WzwpnkkL2e 3wu8D5ppRHvxz0ksTcznnWNwGRp95PQf0hG6cc/YZq+tZ3kEBhCDVC/1dBtFj8jz4TWMZUiZt a+U/WyOCJGPrGaG0xdrB3UaR0iKaFjkLHcSKupr00pU8RTMLK10L1cTOhYopD4iM5OKiPQ5mU Bhdc5+i2jkommbd/xtPMpr4nMXLNXyOTNblJVZGsRnjbPQA89Bnvvw4CLkvT75jJAMz76lSiy ziYYQzs9t+TqM90rFFA6I0UEmr8ZdtMZTJVLjTqbrpraZefhfggNNP5hIb6yu79RKJuAcGrYF HIoT0wFbSL7s+aexCcesJTl+LeQbDlUtUrNQWp8l9sKQQ7boTWZ3mIYureZM3396pLP9nN8Io zKzIp/XH1JFy6pXwIGWiweIfjVN0T4iWsyH57KpdeHLHDbe5cRivPCmkEVrONBliCr5uvLUaO qZ3hvJ23+7JrLfoB8FPxMIw1oJi6/VTMKzgx4GE1YvXULm/ZjROuVNJca/X3KmZlosd8ji/AD brM3/lr1h3YVrVNCtSVf79bELJOMcLHCDrBYTZuCQ0TNd871hwIVJJKhDT0cv/aXVd0wtFc/f dcP4pmeTd6jmlsE9xbpK5B/N2UhF2CvMFHYypMgd2KNkhXpfsLjxOStoy2kdLfK7/1DUKmUxW CkosqEWcd/wdL6LB2N/T8ikZZjew7Hi+yNBlmQrDGLE3I5tsjEd7remGFMYvZEz04UeZLHeE 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:247494 Archived-At: Mikhail Pomaznoy writes: > Greetings emacs devs, or to whom it may concern! Hi Mikhail, > I am having troubles with dired listings of remote directories > containing many files and symlinks. When I scroll through such a dired > buffer Emacs lags (over a second) on every page-down scroll. > > The problem is easily reproducible with -Q if the directory contains a > hundred files and a hundred symbolic links to some other hundred files > somewhere on the filesystem. If I kill the links in the dired buffer > (without deleting any actual files or links) then everything scrolls > smoothly as usual. > > Could you please check if thats a real issue in your setting? ssh > connection I am using is not so slow... Dired does a lot of work for applying proper faces for the file status. For symlinked files, for example, it calls file-truename, file-exists-p, file-directory-p, for every single file in the listing. Some of them even several times. This takes time for remote files, especially if you don't use Tramp caches, or caches with a short timeout. I recommend you to disable the buffer-local font-lock-mode in a remote dired buffer with so many symlinked files, via `M-x font-lock-mode'. > Kind regards, > > -Mikhail Best regards, Michael.