From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#66117: 30.0.50; `find-buffer-visiting' is slow when opening large number of buffers Date: Thu, 14 Dec 2023 19:15:08 +0000 Message-ID: <87r0jooatf.fsf@localhost> References: <878r919qfh.fsf@localhost> <87v8935wik.fsf@localhost> <83msuftr0i.fsf@gnu.org> <87plzbxtxa.fsf@localhost> <87y1dzvvf0.fsf@localhost> <83plzas3pg.fsf@gnu.org> <87r0jqw8u9.fsf@localhost> <83jzpis08a.fsf@gnu.org> <87il52w744.fsf@localhost> <83fs06rz10.fsf@gnu.org> <87fs06w4ui.fsf@localhost> <83bkaurut9.fsf@gnu.org> <87o7esq319.fsf@localhost> <83bkasrb3f.fsf@gnu.org> <83wmtgpuyf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14599"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, 66117@debbugs.gnu.org, mattias.engdegard@gmail.com, Stefan Monnier To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 14 20:13:27 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 1rDr9D-0003dR-0n for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Dec 2023 20:13:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDr8s-0006Q5-TY; Thu, 14 Dec 2023 14:13:06 -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 1rDr8p-0006Pg-IO for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 14:13:04 -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 1rDr8p-0007KN-71 for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 14:13:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rDr8o-0006Jr-6z for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 14:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Dec 2023 19:13: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.170258113224220 (code B ref 66117); Thu, 14 Dec 2023 19:13:02 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 14 Dec 2023 19:12:12 +0000 Original-Received: from localhost ([127.0.0.1]:50939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDr7z-0006IZ-KM for submit@debbugs.gnu.org; Thu, 14 Dec 2023 14:12:11 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:60349) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDr7x-0006IG-7E for 66117@debbugs.gnu.org; Thu, 14 Dec 2023 14:12:10 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 47AD0240101 for <66117@debbugs.gnu.org>; Thu, 14 Dec 2023 20:12:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1702581123; bh=mog88epuOh24C79v7Ytf6yHrmYEm+FoiCNWBfLw74Js=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=bh9Rb0+ZA5C1yhqo3SeM/0I73Td8VIxgaDIvcmkqBOBFy0eM8wLYllkvw+qx9Lci7 T5hnVZORvJ66bQxIlzT1OKfd8YcoCTz9XKDP8OB1qVSOe57iuaAaBp03V68VVClZml Nu63r/+CRMZwqZta7iH1+UjaOqm64O+EYkev1CCaze6fYBIFk1mzbe7Lt4sk7qI0la bEkREb6sHz/F/IB0LGF24scpjddSD851yQQwRKYo7y3+35CmtIOJnWCRUwNPSpQoZc FKDpdYglVbxB5rBWBm36Q+qexh5ggs3QAN6eu/M641iegl/m7HMsP0lmm7aokNw/Nk dxAjkt0ozzxVw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Srhmd6b2zz9rxH; Thu, 14 Dec 2023 20:12:01 +0100 (CET) In-Reply-To: <83wmtgpuyf.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:276210 Archived-At: Eli Zaretskii writes: >> I must say I don't understand the reasoning behind this. >> What would it do different from `case-fold-search`? > > It won't be buffer-local-if-changed, so binding it will not be costly. > It also won't be a defcustom, so let-binding it will not step on the > user's preferences. In my mind, another benefit is that the new variable will not be affected by buffer-local values - (let (case-fold-search-override value) ...) will be guaranteed to use VALUE everywhere, even if current buffer is changed. This will make the case I described in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66117#208 more predictable (and, since it is a new variable, will not break any existing code). -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at