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: Sun, 17 Dec 2023 10:17:40 -0500 Message-ID: References: <878r919qfh.fsf@localhost> <87fs06w4ui.fsf@localhost> <83bkaurut9.fsf@gnu.org> <87o7esq319.fsf@localhost> <83bkasrb3f.fsf@gnu.org> <83wmtgpuyf.fsf@gnu.org> <871qboprh3.fsf@localhost> <87y1dwobey.fsf@localhost> <878r5v20gu.fsf@localhost> <83bkapl5zh.fsf@gnu.org> <83zfy9jkoh.fsf@gnu.org> <878r5tglwp.fsf@localhost> <83ttohjet0.fsf@gnu.org> <83sf41jed7.fsf@gnu.org> <87y1dtyu4y.fsf@localhost> <83plz5jdgj.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="3967"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: dmitry@gutov.dev, Ihor Radchenko , 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 Sun Dec 17 16:18:19 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 1rEsuJ-0000nV-HW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Dec 2023 16:18:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rEsu2-0004ZU-6U; Sun, 17 Dec 2023 10:18:02 -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 1rEsu1-0004YX-0s for bug-gnu-emacs@gnu.org; Sun, 17 Dec 2023 10:18:01 -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 1rEsu0-0007lm-MK for bug-gnu-emacs@gnu.org; Sun, 17 Dec 2023 10:18:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rEsu1-00086h-PN for bug-gnu-emacs@gnu.org; Sun, 17 Dec 2023 10:18: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: Sun, 17 Dec 2023 15:18: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.170282627731150 (code B ref 66117); Sun, 17 Dec 2023 15:18:01 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 17 Dec 2023 15:17:57 +0000 Original-Received: from localhost ([127.0.0.1]:58877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rEstw-00086L-J6 for submit@debbugs.gnu.org; Sun, 17 Dec 2023 10:17:56 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:64626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rEstv-000864-CB for 66117@debbugs.gnu.org; Sun, 17 Dec 2023 10:17:55 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9D0A780C86; Sun, 17 Dec 2023 10:17:48 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1702826267; bh=4VnrCZFax+iMND38x85Ddn0KrAeZF1VYIlrk0Lq/DQ0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=fEfp15PvLJ2yKY9LiLeYiq0YAUIJqNHpHUU1T5W2qJsgre7Xpf4eEJt2Wj656DidP /sYI1vgnZmxa5gsFeAUdAK2ZLvYzPKpOqd+wwBsU/QJVtgzSg3jwuNSPRakd0TBITk KUmfYwibvNpqQHb7+kbtW+344mAmF2LDg4TpRsTernKkyZSgfRn3SD7n7QyYKzsSAs l0TNUOgzW1drSwhbS8UQGX4hlboo/9is46DO3GTrr/0S3e5/RyQOK4uEYJYXa8UdpM HUSc2O93RkEPgPXEwUFQLNdyMQi3nv3yueLbkW1kLv6sBP72R5mmLwlO4ebbQYw3wv M7zLc6cw7x9jA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 80AD280283; Sun, 17 Dec 2023 10:17:47 -0500 (EST) Original-Received: from pastel (65-110-221-238.cpe.pppoe.ca [65.110.221.238]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 46FF3120EA9; Sun, 17 Dec 2023 10:17:47 -0500 (EST) In-Reply-To: <83plz5jdgj.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 17 Dec 2023 13:06:04 +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:276427 Archived-At: > I'm talking specifically about any changes from previous behavior > visible from Lisp. I think we should test all of the following: > > default-value > default-boundp > setq-default > default-toplevel-value > set-default-toplevel-value > > and make sure they all behave exactly the same, both in and out of a > let-binding. There should be absolutely no change visible using any combination of the above function (including with the addition of `let`). If there is, it's a bug in our C code (I don't know of such bugs, but given the complexity of the code and its past history of a long litany of bugs, I definitely won't vouch for it). Some DEFVAR_PER_BUFFER variables *do* behave differently from normal DEFVAR_LISP, but these are the "always buffer-local" ones, like `mode-name`, `buffer-file-name`, etc... Most of the DEFVAR_PER_BUFFER variables behave just like any normal variable. They just use a different implementation strategy and the C code works hard to hide that difference. Stefan