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#67672: EMACS - Slow opening files Date: Wed, 13 Dec 2023 13:59:41 +0200 Message-ID: References: <83bkawvd5j.fsf@gnu.org> <83il53tkn4.fsf@gnu.org> <837cljtgbp.fsf@gnu.org> <834jgntep5.fsf@gnu.org> <83zfyfryop.fsf@gnu.org> <87edfrxhfd.fsf@localhost> <87a5qfxge8.fsf@localhost> <877cljxg1y.fsf@localhost> <871qbrxexo.fsf@localhost> <83v892s4o6.fsf@gnu.org> 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="2815"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: 67672@debbugs.gnu.org, schand@cooley.com, rmoore@cooley.com To: Eli Zaretskii , Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 13 13:01:24 2023 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 1rDNvW-0000VB-FO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Dec 2023 13:01:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDNv3-0005Ue-Lr; Wed, 13 Dec 2023 07:00:53 -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 1rDNuz-0005Q6-T8 for bug-gnu-emacs@gnu.org; Wed, 13 Dec 2023 07:00:51 -0500 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 1rDNuw-0003sn-8z for bug-gnu-emacs@gnu.org; Wed, 13 Dec 2023 07:00:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rDNvC-0001FZ-5V for bug-gnu-emacs@gnu.org; Wed, 13 Dec 2023 07:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Dec 2023 12:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67672 X-GNU-PR-Package: emacs Original-Received: via spool by 67672-submit@debbugs.gnu.org id=B67672.17024688104735 (code B ref 67672); Wed, 13 Dec 2023 12:01:02 +0000 Original-Received: (at 67672) by debbugs.gnu.org; 13 Dec 2023 12:00:10 +0000 Original-Received: from localhost ([127.0.0.1]:58340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDNuL-0001EI-Lu for submit@debbugs.gnu.org; Wed, 13 Dec 2023 07:00:10 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:60529) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDNuI-0001CC-HL for 67672@debbugs.gnu.org; Wed, 13 Dec 2023 07:00:07 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 6A34B5C0430; Wed, 13 Dec 2023 06:59:45 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 13 Dec 2023 06:59:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1702468785; x=1702555185; bh=qU5LYQL7nmzdDRTKCWekyEeJoTLhQMWMMFKoUwyEou8=; b= S5rpo52JMbFDhe06sr7h/umN89gV93m80EAwlby+AprDGtecZAFCcn440HXF95Fh Ba+sVrb0rdnokYfQQoQRQozuTEN22Iui7Wuj3/hnukcoVA9IwglsAfEwLnbKSgS7 MsLqVwRzH2w44SQWDbMcgqr1ASAxofO2ct3wZAMwH01TQY2NjdeD8NUp3aAeqKQ0 1KXjL5C3YlfFS/QDdp/a3Ulx4c+bDOr7sXbCrrUMdLtIQouFSGweXxAyRaajGuh0 4lSh2hEzSpx+IB63DK5q8UgQILuuWOeK1pUK0Sg5E5AZhnJsWIkcEIpMRJiF+c62 PP3wqMCrywBjc2xq8yCQSQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1702468785; x= 1702555185; bh=qU5LYQL7nmzdDRTKCWekyEeJoTLhQMWMMFKoUwyEou8=; b=F 9/PEqsuWna+xqpeG/rWscyPUxcToHC9muOszcCcKGo/Z04YEzvinsB4ww/f53TWV 8E5PZ1ELlG9Hn8OAENhd3i6upoZYEZELjzBrGOjDDmzkxl5T6ELPz4vAGdH27cu6 qUSkdxkp09/2uG8WoPISu6ppzdJg+tr0xz0iSY2CwBXsaoJsvtNMflwP0Gh52MuF Crxehj5lAzF2UvwdJ0G8ujIqdBDOi+vgzjAbYd/2NBV3SabrJ5RqHtZhehp/GUfF oRs8QSZTFO4HRTSrkoCixfEZAj9BwsyBUWwVBXAxCtlj06lmloPwgshLUSZRwQnj +Uwc16pg8i6NLRvK6uTBw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeliedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 Dec 2023 06:59:43 -0500 (EST) Content-Language: en-US In-Reply-To: <83v892s4o6.fsf@gnu.org> 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:276120 Archived-At: On 13/12/2023 13:49, Eli Zaretskii wrote: >> From: Ihor Radchenko >> Cc: Eli Zaretskii , "67672@debbugs.gnu.org" >> <67672@debbugs.gnu.org>, "Chand, Suresh" >> Date: Tue, 12 Dec 2023 21:56:51 +0000 >> >> "Moore, Rider" writes: >> >>> Ah, thank you sooo much!! I think this fixed our issue. >>> Thank you for the instructions as well. Does it matter where we save the test.el file? Once we run M-x load-file we are done with it? >> >> Do note that removing vc-refresh-state may break some things related to >> version control functionality of Emacs, so what I asked you to do is a >> workaround at best; not a proper fix. >> >> Eli or people more familiar with vc-hg.el internals might ask more >> questions to narrow down the more precise cause. >> >> For now, we just determined that `vc-refresh-state' is slow in your setup. > > Dmitry, any ideas? Something to try is (setq vc-hg-parse-hg-data-structures nil) and see whether that changes something. Another - is to (setq vc-command-messages t), see what commands are run (in *Messages*) and test them in the terminal, comparing performance and debugging it on their side (perhaps working with TrueCrypt support, reporting that such and such commands are slow). Finally, if the users only want to run Emacs as a "normal text editor", then setting vc-handled-backends to nil would improve performance, while removing all the VC related features.