From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66117: 30.0.50; `find-buffer-visiting' is slow when opening large number of buffers Date: Wed, 13 Dec 2023 14:10:35 +0200 Message-ID: <83plzas3pg.fsf@gnu.org> References: <878r919qfh.fsf@localhost> <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> <87y1dzvvf0.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17928"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, yantar92@posteo.net, 66117@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 13 13:12:18 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 1rDO66-0004V1-6G for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Dec 2023 13:12:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDO5p-0000EU-Tz; Wed, 13 Dec 2023 07:12:03 -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 1rDO5b-0000DP-66 for bug-gnu-emacs@gnu.org; Wed, 13 Dec 2023 07:11:48 -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 1rDO5a-0002H2-52 for bug-gnu-emacs@gnu.org; Wed, 13 Dec 2023 07:11:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rDO5p-0001Vb-Og for bug-gnu-emacs@gnu.org; Wed, 13 Dec 2023 07:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Dec 2023 12:12: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.17024694665735 (code B ref 66117); Wed, 13 Dec 2023 12:12:01 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 13 Dec 2023 12:11:06 +0000 Original-Received: from localhost ([127.0.0.1]:58357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDO4w-0001UR-0e for submit@debbugs.gnu.org; Wed, 13 Dec 2023 07:11:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDO4s-0001Tv-9L for 66117@debbugs.gnu.org; Wed, 13 Dec 2023 07:11:03 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rDO4W-0000aU-AF; Wed, 13 Dec 2023 07:10:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=93JmQStzBXal304+GWe+3AxhVzoaBzftuGz1jkwBTWQ=; b=ZPA+oBohoEEU ROoA3KdqMGuQciqv/YtBHA5ZnM2pQFUpcZwWCnuLbZw9wIz5l/p92QWoVxxmXV/9Z3IZbZHDvnDtq Eg59k0AVdA2+PDgVPl/89SupgtQf8EMfQmDWr6B1ggHUqVrw/bRsoyzrine5aQJlTA/LErMwxRVsN dzQgb2Lp6U1l0+mlixl9zhaMaryMlU9/pV1HpeEL8sxG/0SRy1GQNfAmvgXTr+3NiIa0tr1XVy6w4 xvWzZXRtYBiZF5YiMSXMo5Vk+zG/MvtUCUvSO/0qUP0oItuqh6vqxwmcHxsaS6oyeobvYemlMp/I0 A/TB/lqzFLwLHqQS8L1n5w==; In-Reply-To: (message from Stefan Monnier on Tue, 12 Dec 2023 22:55:15 -0500) 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:276122 Archived-At: > From: Stefan Monnier > Cc: Ihor Radchenko , Eli Zaretskii , > 66117@debbugs.gnu.org > Date: Tue, 12 Dec 2023 22:55:15 -0500 > > > That sounds attractive (ignoring all buffer-locals when let-bound?), > > but I'm guessing there are enough valid use cases for this behavior. > > Yup, that would break lots of existing code, indeed, and in subtle > enough ways that people would go crazy. > > Luckily, there's no "100% ideal" way buffer-local and scoped bindings > can interact. All choices suck in some circumstances, so there's really > no good reason to lament the current choice: it's no worse than > the alternatives, AFAIK. Btw, the title of this bug is about find-buffer-visiting, and AFAIR I proposed to have a primitive written in C that replaces find-buffer-visiting without a need to actually switch to each buffer (which is what triggers the costly rebinding of buffer-local variables like case-fold-search). So why we are talking about case-fold-search instead of solving the original problem? If we want to discuss the case-fold-search issue, IMO we should discuss it in a separate bug report.