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, 20 Sep 2024 17:35:41 +0200 Message-ID: <87cykys5gy.fsf@gmx.de> References: <87o75241qh.fsf@gmail.com> <87le0450x8.fsf@gmx.de> <865xr8228d.fsf@gnu.org> <87jzfofzcl.fsf@gmail.com> <8634mc1ty0.fsf@gnu.org> <87h6asl3hl.fsf@gmail.com> <86ttesyo1t.fsf@gnu.org> <87bk0zjzt1.fsf@gmx.de> <86a5gjy02i.fsf@gnu.org> <87wmjn2wq5.fsf@gmail.com> <87seuaids7.fsf@gmx.de> <86frqaweo2.fsf@gnu.org> <87a5gigo9b.fsf@gmx.de> <86cylew3tr.fsf@gnu.org> <87r09sexp0.fsf@gmx.de> <87cyl7rvn3.fsf@gmail.com> <86y13uiwhk.fsf@gnu.org> <877cbe48ja.fsf@gmail.com> <86ed5mffbc.fsf@gnu.org> <87bk0ik5uz.fsf@gmx.de> <87zfo2jtnl.fsf@gmail.com> 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="2054"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 73046@debbugs.gnu.org To: Suhail Singh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 20 17:37:13 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 1srfh2-0000M6-Ew for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Sep 2024 17:37:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srfgc-0005Ge-Iw; Fri, 20 Sep 2024 11:36:46 -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 1srfgZ-00058U-Dc for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2024 11:36:43 -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 1srfgZ-00070X-4G for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2024 11:36:43 -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=VdyWacqTO1/IMmiLJ7LK7FjQx/CQJT2iPlOv3mF7NnU=; b=CnD4pZMNNOBqGcOMtO+6aGBh9CPXNpIfoRuvAMjCv/MGEL/F4H3J69S1svOo1CakDSz04rn6l14B6tjp4ZuuURKx+zhQ8in6jI5hXwkUU0hd3lh6WwM9YfKSqr6X6nFnRbXuQAF2xcT3yrrQNT8LaGtOz99pNZuVehAKeAakbHEp63KUyYQjHlN6mQWNXyuvP8MOIuh9XKvohqlb0QB/fgWek1TNjhh6i25/ofi6YhwwjEszXZnBfVSYLuTLfCDMwh+guSh1PdZrdOGXCjnYUl9HhLsmVUf3wScSJISKwD73ZRJ+JwYqrVMzG/jFzKIxjvPF4ap9FP3qz2X+B92BOQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srfgr-0001mA-NU for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2024 11:37:01 -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, 20 Sep 2024 15:37:01 +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.17268465736735 (code B ref 73046); Fri, 20 Sep 2024 15:37:01 +0000 Original-Received: (at 73046) by debbugs.gnu.org; 20 Sep 2024 15:36:13 +0000 Original-Received: from localhost ([127.0.0.1]:36101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srfg5-0001kZ-9U for submit@debbugs.gnu.org; Fri, 20 Sep 2024 11:36:13 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:57519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srfg2-0001kG-QQ for 73046@debbugs.gnu.org; Fri, 20 Sep 2024 11:36:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1726846542; x=1727451342; i=michael.albinus@gmx.de; bh=VdyWacqTO1/IMmiLJ7LK7FjQx/CQJT2iPlOv3mF7NnU=; 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=pt3fcEpUaw30Lwo8LFK0Y3kxORa7KhL4l+Uz4wejKEQjzn+gk3Y39xrmy+1LpA87 an0Xu7tfUslG/oIhtCjV3f4hySTkNb1Ob4mz6+rlaejmftysW7yVIrS/rDysszxJ5 ZFE6IVfF8M9nVWGATkeSl0o1zEyFN0nwcNi3/La1CywaXFBJTbqqD7w5ew/uukZUJ /vegwpPUhGuVW9iwKRBN2zIAUGiapmjbmnmkRjgy0skwhrek2fUGOdwougIKwNcZu LtFNEndfNPCzn/L2rdj5jg808dKwUCjVcO268oUHNxcpxp1oAR6p//Rvs06rXzBHu EXfhbAOct7FtbEEM9g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MfpSl-1sKFnT1VwP-00jbWk; Fri, 20 Sep 2024 17:35:42 +0200 In-Reply-To: <87zfo2jtnl.fsf@gmail.com> (Suhail Singh's message of "Fri, 20 Sep 2024 10:18:06 -0400") X-Provags-ID: V03:K1:FNWiGjkh5F5voFOnfoGV5GhRQOOy5CkQNkQeA7rUsCm6HujaECV rULAJrw6ZdtfutN1IBnqYjC5JhUTAsm/L+XjfAwYLGwf4Dq4grBAQ5Z7qXYGnxVX45RE+V3 bwnWRZxDIgtUkUKeVXVzlHgyox1LKywMQK0k66J/pgQI8srgpz0Gy3st+io8nlxrwVwowjR +bEjH25tKpBTuRQcb7XZQ== UI-OutboundReport: notjunk:1;M01:P0:ctXGt9szI+M=;x9uIXV0BDOOC42Y3YI9FDTj+cLl tvuNjG8npec49HActYYBDvJu22f+38lZ8jOnSa/XADHvsAX94c2OgA9iGHukZfdYhIxlzEmmJ dKwPVDxrYOWUM5WLA9dJD1HGp07QJBFVglI+K5xQtrvd39rurYYvnr1Fu53RshT2B+JPFs1Sy FNCtaSXGsWkoBPFdAtm1brIA8rAjOsXIU3/xNZae080k36CTKleGbXGURa7BVxAtsd4vt4Vr0 VnEzBbAvuqRevwOhlcBXSWb55iXSgXb8D1XhMIFem6oSlnThOP4xBeHoWqLtSX+VOwBPBsWPa 1+CmP+d/P4F3y4mHL1ztjsfyLieexLrriobgD4Me+1y6RWJi2vlQx5oxSEa+OfSV99AwjDkxd THHw2B+HGkIE1ddCADiZyNY+0UNXG5mOO38FtuynrHgJcm2ryA6VFUWtqod6Q4cxrFBeROo/P juTemImRA7WJIXW4RwvDFRAIyn2GvyL8lE8EpK3BvpAR7bl1twRiLblO+9Qx5DrmeX+YGr0fG qK2wiL/LroqkXExUCqvmi325Q41h/1YZRWq45yl1Jux+HuWieZgx0xh/k8Y/1fQKc3sdg+9MJ JIVSP8+FytvognSxN+j8eo1l189fRRqxce9QjK1D6I9yOLKD3FR2SwNE7k6QV89LcqdXgb1Eh 23mYP2OrEY/97lNSNLBVKPX+TOCDYXLl9Efy63bPvx9tZxL85jq0PrEHKKPthgDKHPM4pkcI9 J/hPvf0Lh9sMQHBHlw6uQDfP9iM4FEl9SZ8kJ1GfViBeB48EHAObc2flC8XQsqncuLp6abra 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:292124 Archived-At: Suhail Singh writes: Hi Suhail, > On a related, but distinct note, thoughts on whether there's a > relatively straightforward way to address "3" below (from one of the > other exchanges in this thread)? > >>> >> 3. If after invoking M-x we immediately start typing, the keyboard = input >>> >> is registered, however, it doesn't display in the minibuffer til= l >>> >> after the offending directory has finished font-locking. >>> >> Additionally, doing so invariably results in 100% CPU usage for = the >>> >> duration of the font-locking. Sometimes invoking M-x alone resu= lts >>> >> in CPU usage going back up to 100% (while font-locking is still = being >>> >> done). >>> >>> > And what do you expect to happen when you press M-x while Emacs is >>> > still busy performing your previous command? >>> >>> I did not expect 3 to happen. I.e., wrt 3 my expectation was that >>> invoking M-x and typing doesn't result in a noticable increase in CPU >>> usage for the duration of the font-locking. >> >> If 3 surprised you, then the reason is simple: sit-for returns >> immediately if any input is available, so typing effectively disables >> the wait. This could be countermanded by unconditional sleep, but >> AFAIU Michael is rethinking the whole issue, so we should wait for him >> to reach his conclusions. This would mean to use (sleep-for 0) instead of (sit-for 0), right? Hmm, I might try the same tests for this clause next days, no idea whether it makes a difference. But ATM, we should use (sit-for 0), until we know better. Best regards, Michael.