From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#73718: 31.0.50; Severe performance issue with Tramp and project-mode-line-format Date: Fri, 11 Oct 2024 03:38:25 +0300 Message-ID: <71d57a53-f8d8-45f7-bff6-09f5acf292f8@yandex.ru> References: <874j5lzhdn.fsf.ref@aol.com> <874j5lzhdn.fsf@aol.com> <29ebe27b-89d6-4861-8c5e-3db50a1660f3@yandex.ru> <86a5fdmg3h.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1852"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Ergus , Michael Albinus , 73718@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 11 02:39:09 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 1sz3gT-0000Lk-31 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Oct 2024 02:39:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sz3gC-0000i1-Ja; Thu, 10 Oct 2024 20:38:52 -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 1sz3gA-0000hd-Nr for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 20:38:50 -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 1sz3gA-0004DC-A6 for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 20:38:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=T+nKi1LTaHPkToMPJ9yA46UaCcU8T/lzDtFQUNRWMlQ=; b=hfUhChMCGOcvZA+TEov33EMT6ioIkwsxkrCwlUOGMRAMKg327wu0D6YghviXFxS/W98in97MlKSLuuu7JuSA8Kde5wdK/H+tILNjCmqVhiR8Gm0KP87NlUIhLeqY2DPKWibBcMm1ysUBgC8+WCYLDjx4r7mY6Mre4LB00Tkgcmdf/xPq++bvuNagtzOYxCk/tfLSVNT28qlF/BgTDMlPVIwGKO0OSNsktgmtMkjjWHXYAOqTJzMeGoTyDIen2cbLzcO4ATrbTaKHjRwzdBGHcsBjVwYl0MWXD/QcaiMZn3lLYulHBn0RN0lIEgxDgG1tPHVNZHfwdNDXF/G1LAI4ag==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sz3gM-0003RW-8U for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 20:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Oct 2024 00:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73718 X-GNU-PR-Package: emacs Original-Received: via spool by 73718-submit@debbugs.gnu.org id=B73718.172860712813212 (code B ref 73718); Fri, 11 Oct 2024 00:39:02 +0000 Original-Received: (at 73718) by debbugs.gnu.org; 11 Oct 2024 00:38:48 +0000 Original-Received: from localhost ([127.0.0.1]:60934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sz3g8-0003R2-1O for submit@debbugs.gnu.org; Thu, 10 Oct 2024 20:38:48 -0400 Original-Received: from forward500d.mail.yandex.net ([178.154.239.208]:52548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sz3g5-0003Qt-Qx for 73718@debbugs.gnu.org; Thu, 10 Oct 2024 20:38:46 -0400 Original-Received: from mail-nwsmtp-smtp-production-main-19.klg.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-19.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:3143:0:640:c03:0]) by forward500d.mail.yandex.net (Yandex) with ESMTPS id 2BAA0616A5; Fri, 11 Oct 2024 03:38:32 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-19.klg.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id TcXXv91tG4Y0-IlnybfcL; Fri, 11 Oct 2024 03:38:31 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1728607111; bh=T+nKi1LTaHPkToMPJ9yA46UaCcU8T/lzDtFQUNRWMlQ=; h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To; b=ZkvydzslSHKbjLGOozLXVuDx1dwCBpRy9dJ1WM7zyqbAL7WifPn3QRvyIzj6do/AA WV3r8IhEmUk/iWHXZNrDzfG2M+yL/Ubmb/vyfeeFmdaQFhgMS7+xnr+++Kfn0NbDTx dombKT72J5gMBCsiG6Uo3YX9qRobp7DVN67tdv+c= Authentication-Results: mail-nwsmtp-smtp-production-main-19.klg.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfauth.phl.internal (Postfix) with ESMTP id D8BB91200043; Thu, 10 Oct 2024 20:38:28 -0400 (EDT) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Thu, 10 Oct 2024 20:38:28 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdefjedgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegughhuthhovheshigrnhguvgigrd hruheqnecuggftrfgrthhtvghrnhepiefhjeeuveetffffvdefteffffekhfeuudejieeh heeiudelgfehgffffeduffdunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepughguhhtohhvodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhi thihqddufeeffeelleehhedvqddvleegjeejjeejiedqughguhhtohhvpeephigrnhguvg igrdhruhesfhgrshhtmhgrihhlrdgtohhmpdhnsggprhgtphhtthhopeegpdhmohguvgep shhmthhpohhuthdprhgtphhtthhopehjuhhriheslhhinhhkohhvrdhnvghtpdhrtghpth htohepshhprggtihgssggrsegrohhlrdgtohhmpdhrtghpthhtohepmhhitghhrggvlhdr rghlsghinhhushesgh X-ME-Proxy: Feedback-ID: ib1d9465d:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 10 Oct 2024 20:38:27 -0400 (EDT) Content-Language: en-US In-Reply-To: <86a5fdmg3h.fsf@mail.linkov.net> X-Yandex-Filter: 1 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:293322 Archived-At: On 09/10/2024 19:10, Juri Linkov wrote: > Or maybe better to cache the value of project-name on remove projects. Just the project->project-name mapping? Why not. I suppose there'd still be a pause when switching projects, but it's not as bad. For general caching, from past threads it seems the most problematic case is "no project". Because OT1H it's still costly it terms of remote I/O. But on the other, this is exactly when the cache might get invalid soon (because the user will initialize a Git repo, or create another root marker, etc). I guess we should come back to this after bug#72300.