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: Sun, 08 Oct 2023 12:20:20 +0000 Message-ID: <87il7hpapn.fsf@localhost> References: <878r919qfh.fsf@localhost> <83pm2a5k85.fsf@gnu.org> <87wmwh2tae.fsf@localhost> <83zg1d468w.fsf@gnu.org> <87bkdr2651.fsf@localhost> <87pm2584oz.fsf@localhost> <83cyy11ln1.fsf@gnu.org> <87lecp84mf.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> <87o7h9pd9b.fsf@localhost> <48507f04-25d4-56b0-f16f-50b2a01ac41e@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28014"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 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 Sun Oct 08 14:20:01 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 1qpSlL-0006ze-PX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Oct 2023 14:19:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpSl7-00026f-7o; Sun, 08 Oct 2023 08:19:45 -0400 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 1qpSl5-000262-Ig for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2023 08:19:43 -0400 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 1qpSl4-0005tG-9F for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2023 08:19:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qpSlO-0003RB-82 for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2023 08:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Oct 2023 12:20: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.169676755013144 (code B ref 66117); Sun, 08 Oct 2023 12:20:02 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 8 Oct 2023 12:19:10 +0000 Original-Received: from localhost ([127.0.0.1]:56464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpSkY-0003Pw-Fy for submit@debbugs.gnu.org; Sun, 08 Oct 2023 08:19:10 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:59047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpSkW-0003Pi-Od for 66117@debbugs.gnu.org; Sun, 08 Oct 2023 08:19:09 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id EF71B240028 for <66117@debbugs.gnu.org>; Sun, 8 Oct 2023 14:18:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696767523; bh=2gS1AOBLpjjofjVaOo+yWxEhzGlWzXE1y84c8AWX+C0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=MemGqR2sMyL4xaiXlIVHIEdsOkddK0MEntPFtzCYpMybTfb+tAgEaxD3/tazo5GBb ilPBS4sLTlAk2zlafv6/JBbwDZbEc1hn4jJshb/lOXsflAcgTmk0jSfSznzDWZmz/7 VZH8GI6Oz0I5/JxAjE+25ZFIlbQVxCVM91BJJBn/QGoR9IGCpQIqN4qTCG/oKoBJkk ztMkyXba/OfCLTEBPcTF1hvWtu0GsgC6kVqYDghK+1rSdex7mdZKkDU7uiDgLcWSFF HfcErp2MV1Q1XDXFZ/UcSKvmlBG5QxW+c40I1QaD6JOzt0kBexKTR7vp/EacDNI9dT w9n0y4e3UPSVQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S3Lmf1R0Sz9rxD; Sun, 8 Oct 2023 14:18:42 +0200 (CEST) In-Reply-To: <48507f04-25d4-56b0-f16f-50b2a01ac41e@gutov.dev> 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:272090 Archived-At: Dmitry Gutov writes: >> The full memory profile is attached. > > That's odd. Do many/any of your files being visited match > inhibit-local-variables-suffixes or inhibit-local-variables-regexps? I used the same reproducer. You can try it on your side if you want. > This might help a little bit: > > - (not (string-match (car temp) name))) > + (not (string-match-p (car temp) name))) It is the first thing I tried. Nope. And, as Eli pointed, memory profiler is not measuring consing... So, it is useless for the purposes of reducing GC time. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at