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: Tue, 12 Dec 2023 22:47:35 +0200 Message-ID: References: <878r919qfh.fsf@localhost> <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> <83y1gdxws8.fsf@gnu.org> <87jzrwm7ul.fsf@localhost> <87h6n0m781.fsf@localhost> <87v8935wik.fsf@localhost> <83msuftr0i.fsf@gnu.org> <87plzbxtxa.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="28356"; 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: Stefan Monnier , Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 12 21:48:20 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 1rD9fv-00076S-75 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Dec 2023 21:48:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rD9fR-0003mi-QQ; Tue, 12 Dec 2023 15:47:49 -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 1rD9fP-0003lv-R1 for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2023 15:47:47 -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 1rD9fP-0006PB-Ev for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2023 15:47:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rD9fe-0000C6-Vu for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2023 15:48:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Dec 2023 20:48:02 +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.1702414082729 (code B ref 66117); Tue, 12 Dec 2023 20:48:02 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 12 Dec 2023 20:48:02 +0000 Original-Received: from localhost ([127.0.0.1]:57675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rD9fd-0000Bb-T8 for submit@debbugs.gnu.org; Tue, 12 Dec 2023 15:48:02 -0500 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:53727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rD9fc-0000BK-7u for 66117@debbugs.gnu.org; Tue, 12 Dec 2023 15:48:00 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 6A4C23200A88; Tue, 12 Dec 2023 15:47:38 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 12 Dec 2023 15:47:38 -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=1702414057; x=1702500457; bh=Au5V9f2OguEg1j4oWgGra2CKlFGxf8k2oBWnJr6pdQg=; b= wh5r0JMgwAp3r165tvLutkWF0W1v3tOXRRPstnvwPcj4EorJduyGDo5fLzwnmIpP Wv2WdV3GvwP+p8a8TpKa80PQceTZA2S5rDF9t5z5YJEkbO7Qfa5Vme1C50fJJNtT MH2Y/obuPKbm/+PvGY0EbA+R2c29PWO2HcpBO+gxJdnffUcuh4darG4+xTnjeOpX /3XSpFVAyaX52gn8rKKIQeor12Z0TRduX6THwfUx2nFnE9eoXTscYAd3izdhRedI aG1sl5THhYrrX5RRaJ0UrqYFvofSKR5r2C3tFRKX4C4ZEJlg6woevdmuGOF9FU59 GU1o7AlzrOFfS25joRSddQ== 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=1702414057; x= 1702500457; bh=Au5V9f2OguEg1j4oWgGra2CKlFGxf8k2oBWnJr6pdQg=; b=E qCUFrwstYK4coZLAvh2o9KOcvnqtwWshbyZ6BEq+lsnBLCGeNlorRbvV2fNRjLQO fYMqQxMoKxIxSWqs01COdtWjlNFLv5FsLajhlTDxaaWac210fWMS8RJjsoJS771Z fzhCR+mSsN7rsFWOgul4pvObvOtATFTyqH0h+O8BwZzQ5Wm/xvkaIYI70s+mkwCK xj+j9Gu+nsz6iMUraFsOz+rr4r6JSTF5R9N4Iv0yZ7YhsXCIx1Q7fk5NSWXgNBqu CTbhzepfmkEflAtfxdEznU36h3qOmI9VJ0howieGPs1b953q8QTRv3/543zHhGbl ekEbg5dRcpEo6mMM11ZjA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudelgedgudefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeev ledvveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Dec 2023 15:47:36 -0500 (EST) Content-Language: en-US In-Reply-To: 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:276083 Archived-At: On 12/12/2023 22:01, Stefan Monnier wrote: > This said, in the case of `case-fold-search` I think there's a simpler > solution: make it "buffer-local only", meaning that let-binding it > affects only the current buffer (rather than affecting all the buffers > which have not made it buffer-local yet). Wouldn't that be a breaking change? And a non-obvious one. E.g. company-dabbrev-code creates a dynamic binding for case-fold-search in one place and then calls a function (company-dabbrev--search) that iterates across all buffers with re-search-forward.