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#66117: 30.0.50; `find-buffer-visiting' is slow when opening large number of buffers Date: Mon, 9 Oct 2023 03:48:47 +0300 Message-ID: References: <878r919qfh.fsf@localhost> <83pm2a5k85.fsf@gnu.org> <87wmwh2tae.fsf@localhost> <83zg1d468w.fsf@gnu.org> <87bkdr2651.fsf@localhost> <87pm2584oz.fsf@localhost> <83cyy11ln1.fsf@gnu.org> <87lecp84mf.fsf@localhost> <83ttrdx8j9.fsf@gnu.org> <87a5su261p.fsf@localhost> <838r8e24yy.fsf@gnu.org> <87y1gezspg.fsf@localhost> <834jj21z05.fsf@gnu.org> <87il7izo4l.fsf@localhost> <831qe61xrh.fsf@gnu.org> <87cyxqzmhh.fsf@localhost> <83zg0uzlgw.fsf@gnu.org> <87v8bhxzcu.fsf@localhost> <87o7h9pd9b.fsf@localhost> <48507f04-25d4-56b0-f16f-50b2a01ac41e@gutov.dev> <87il7hpapn.fsf@localhost> 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="33762"; 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: Eli Zaretskii , 66117@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 09 02:50:04 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 1qpeTD-0008XE-Am for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Oct 2023 02:50:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpeSt-0007nd-9d; Sun, 08 Oct 2023 20:49:43 -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 1qpeSr-0007nD-Qs for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2023 20:49:41 -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 1qpeSr-0005Pm-Ii for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2023 20:49:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qpeTB-00062c-R9 for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2023 20:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Oct 2023 00:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66117 X-GNU-PR-Package: emacs Original-Received: via spool by 66117-submit@debbugs.gnu.org id=B66117.169681255923160 (code B ref 66117); Mon, 09 Oct 2023 00:50:01 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 9 Oct 2023 00:49:19 +0000 Original-Received: from localhost ([127.0.0.1]:58903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpeSU-00061U-Kx for submit@debbugs.gnu.org; Sun, 08 Oct 2023 20:49:18 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:60517) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpeSS-00061D-Rb for 66117@debbugs.gnu.org; Sun, 08 Oct 2023 20:49:17 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4C0E95C02DD; Sun, 8 Oct 2023 20:48:51 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 08 Oct 2023 20:48:51 -0400 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:sender:subject:subject:to:to; s=fm1; t= 1696812531; x=1696898931; bh=0Htg7UOn8Dhq1Kz4vSZRAcbPVRffcXqN+Zx poqul61w=; b=OAlOxaAlhKRed1JBMbXjwxLuDDCRq07PZnQ6zGWM8c8uweITn03 B5pVDKsZ4lSBt3VZucT0iyYOJh854xFFP6hwRVFxHg0CNs9KiT/ieA5fr8VeDdX/ KLL9pd2YkDAQ92HeYxu3qAlwO0292oLEQ84+UlzNJL6J5cWOrpBSoJg4irC1KwNw dhoc77iF/2djxGTs6X9hwy8k7o9BjHK7m0Rb2KZeC2v1NldHbHhB+gUwx6GosIze S2C7i/1Scj1ZKBma75uFw8ZH2G1hJvEKbrvuBNC/9SwwIxbfu9WyjRNY+9sXXa8D pFbI7GWqyp9ra5AFaB4P2zgnz8Gvkf1wnYg== 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1696812531; x=1696898931; bh=0Htg7UOn8Dhq1Kz4vSZRAcbPVRffcXqN+Zx poqul61w=; b=Em1qQMRIfY7rsbvjLkbsaQIwnctIg1/5T1mWyJijIODRKZei28v kUeD+bErTqzAd0uMT9lVDAB6PvihdLWENxS5j8mOUY2SH2dW6M4KwQPmmyFHyVxD WNTSsLbCMXA5AvWNuBm0YZ3BD6k1UzwvoasV18uJ3npLQ2+M5oM+TBSaJ+d3Jnru pgaQOX6P0ixjeWgOAfsezDznb5fK9BrTgSvG/9xB0Z7NEa/vWwYnhaul4az1Hfll IzLZepik+rWWU6c2X0FTqpxcbd30ckWzepvCIhLv+yjVsv1vakXhjQ1qY5Kwq1JJ 7W/RlmkDhbiqJbqFxq9pgLyQAhgjEihRX8A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrhedvgdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeevledv veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 8 Oct 2023 20:48:49 -0400 (EDT) Content-Language: en-US In-Reply-To: <87il7hpapn.fsf@localhost> 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:272117 Archived-At: On 08/10/2023 15:20, Ihor Radchenko wrote: > Dmitry Gutov writes: > >>> The full memory profile is attached. >> >> That's odd. Do many/any of your files being visited match >> inhibit-local-variables-suffixes or inhibit-local-variables-regexps? > > I used the same reproducer. You can try it on your side if you want. Tried it, didn't find anything obvious (that helped) either. Thanks. >> This might help a little bit: >> >> - (not (string-match (car temp) name))) >> + (not (string-match-p (car temp) name))) > > It is the first thing I tried. Nope. > > And, as Eli pointed, memory profiler is not measuring consing... So, it > is useless for the purposes of reducing GC time.