From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 13:11:58 -0500 Message-ID: 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> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29061"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: dmitry@gutov.dev, yantar92@posteo.net, mattias.engdegard@gmail.com, 66117@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 14 19:13: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 1rDqD5-0007Jk-92 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Dec 2023 19:13:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDqCn-00082u-2l; Thu, 14 Dec 2023 13:13:05 -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 1rDqCk-00082G-OH for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 13:13:02 -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 1rDqCk-0007nY-Fq for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 13:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rDqCj-0002kl-Qm for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 13:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Dec 2023 18:13: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.170257753010507 (code B ref 66117); Thu, 14 Dec 2023 18:13:01 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 14 Dec 2023 18:12:10 +0000 Original-Received: from localhost ([127.0.0.1]:50888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDqBu-0002jP-9O for submit@debbugs.gnu.org; Thu, 14 Dec 2023 13:12:10 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:44800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDqBp-0002ii-Vk for 66117@debbugs.gnu.org; Thu, 14 Dec 2023 13:12:09 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3820E100068; Thu, 14 Dec 2023 13:12:01 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1702577520; bh=AqRav1SRRqV3e6NcQJPTYVkzvTfkA76nxHNfpvFgzWM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=RFVralrsm3Zsy2PAuxO5O2LDhbFg8k5d+nIId8A64CyMFjewFP/bKxZdCMCndBM2T 2ngWTuf3v7PUsGDDBev/wBhSB+gujVx6aYu8CCxB4VG443cCwwM/MvgxodXf7TLR4u Lfnohb5o7/px0QGg0ljVktCcRePHJ8oR6k1CcqTXRKf2O4AWUIlHhruWR7TBsVwGif HRqF1G/uFwgAbVXEPS7FoKobDmp5AuQi2YNylqgMHsPojPot5PkQLnDI9HMVSSfgiw j3cJXRWiphbYt7xw+33EbjFw5ksvT1EZ900wekXm/g4rp3gRvzAb2ioYUOdReX77LZ iWgT+mW+Uw+6w== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 29C28100033; Thu, 14 Dec 2023 13:12:00 -0500 (EST) Original-Received: from pastel (unknown [45.72.203.88]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id ED47F120838; Thu, 14 Dec 2023 13:11:59 -0500 (EST) In-Reply-To: <83wmtgpuyf.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Dec 2023 19:14:48 +0200") 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:276204 Archived-At: >> > But for starters, a new Lisp-only global variable should be good, I >> > think. Stefan, any comments? >> >> 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. As mentioned elsewhere in this bug-report we can make `case-fold-search` into a `DEFVAR_LISP`: it would have no visible impact to ELisp and would avoid the costly let-bindings. > It also won't be a defcustom, so let-binding it will not step on the > user's preferences. Hmm... when/where do existing let-bindings of `case-fold-search` step on user settings of that var? IME the problem is rather the opposite: most calls to search functions don't explicitly let-bind `case-fold-search` and instead rely naively on the default value and are thus susceptible to bugs if/when someone sets the custom var (globally or buffer-locally). Stefan