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: Tue, 12 Dec 2023 22:50:54 -0500 Message-ID: References: <878r919qfh.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> <2d355bf6-7fca-a733-d656-aeee701901b2@gutov.dev> 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="22744"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Ihor Radchenko , Eli Zaretskii , 66117@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 13 04:51:56 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 1rDGHs-0005gR-9Z for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Dec 2023 04:51:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDGHk-0005on-EY; Tue, 12 Dec 2023 22:51:48 -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 1rDGHj-0005oT-IL for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2023 22:51: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 1rDGHi-0006yP-8C for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2023 22:51:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rDGHx-00047j-Uf for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2023 22:52: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: Wed, 13 Dec 2023 03:52: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.170243948115797 (code B ref 66117); Wed, 13 Dec 2023 03:52:01 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 13 Dec 2023 03:51:21 +0000 Original-Received: from localhost ([127.0.0.1]:58027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDGHJ-00046j-86 for submit@debbugs.gnu.org; Tue, 12 Dec 2023 22:51:21 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:61562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDGHI-00046V-0i for 66117@debbugs.gnu.org; Tue, 12 Dec 2023 22:51:20 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id DA15980250; Tue, 12 Dec 2023 22:50:58 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1702439457; bh=zleft2dsDMxq18tD55TfS3PXBvFaiTQle4TIAQH0SlU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=m5rFdxVzglXEwFrSKMaamq78z7iPgV22hCfpQKHV7J23FjMuCGtxXqFR3+F47AC12 T0NuuOletJpbYTeAdlTFGNZxqmDjOv8OHFcKyQjgfvlC9RxJCi8/mschuldH52ZXQx bkgfo3M+HjexvtbawYYXTp63GpcJGXhcccdnaCW4g373I6rkAN6La3smN5rs4reFnA ozt9BpVNwQXVD64E/ZirLHwTm4AklGbuScmKbfqzwJhxW6meERMApX40BE26aC9WY9 e6LRFm+QJl01E9y/wFcQIfBFFzf+7OxNODzRmB+9vgIlFjxQdNs/+cohm293LOfFgO LCvnKnHmXSDvw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id CABE980357; Tue, 12 Dec 2023 22:50:57 -0500 (EST) Original-Received: from pastel (unknown [45.72.203.88]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9BDA3120878; Tue, 12 Dec 2023 22:50:57 -0500 (EST) In-Reply-To: <2d355bf6-7fca-a733-d656-aeee701901b2@gutov.dev> (Dmitry Gutov's message of "Wed, 13 Dec 2023 01:40:03 +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:276108 Archived-At: > Perhaps in the long run it might be good to do the opposite? Introduce > never-buffer-local variables, and make case-fold-search one of them. > > I do see a few hits for > > (setq-local case-fold-search > > across the Emacs codebase, but in none of these I can clearly understand the > end goal (is that for interactive isearch?). If it's really rare, then the simpler&better solution is to move it out of the `struct buffer` altogether (i.e. make it normal DEFVAR_LISP or DEFVAR_BOOL). > Except for > ido-make-buffer-list-1, which is done purely for performance, working > around a problem related to what's being discussed here (df4991093b94). Of course, ideally there should be no such var for `re-search-*` and friends. Such vars are good for user-configs impacting the behavior of commands but they're a bit clunky when used as implicit parameters to low-level ELisp primitives. Stefan