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#58558: 29.0.50; re-search-forward is slow in some buffers Date: Sun, 16 Oct 2022 14:21:23 +0300 Message-ID: <83sfjo3tfw.fsf@gnu.org> References: <877d10r21x.fsf@localhost> <87zgdwyvkt.fsf@gnus.org> <87ilkk6ri5.fsf@localhost> <87v8okjei9.fsf@gnus.org> <87tu44jdce.fsf@localhost> <87czasjd9j.fsf@gnus.org> <87k050nio5.fsf@localhost> <87zgdwhw0z.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15106"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58558@debbugs.gnu.org, yantar92@posteo.net To: Lars Ingebrigtsen , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 16 13:22:38 2022 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 1ok1j3-0003ld-QB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 13:22:37 +0200 Original-Received: from localhost ([::1]:43396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ok1j2-00041h-Dl for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 07:22:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok1iU-00041L-Ra for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 07:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44469) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ok1iT-0006eg-Og for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 07:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ok1iT-0008Vu-K2 for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 07:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Oct 2022 11:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58558 X-GNU-PR-Package: emacs Original-Received: via spool by 58558-submit@debbugs.gnu.org id=B58558.166591930532691 (code B ref 58558); Sun, 16 Oct 2022 11:22:01 +0000 Original-Received: (at 58558) by debbugs.gnu.org; 16 Oct 2022 11:21:45 +0000 Original-Received: from localhost ([127.0.0.1]:43547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ok1iD-0008VD-3H for submit@debbugs.gnu.org; Sun, 16 Oct 2022 07:21:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ok1iB-0008Uz-KG for 58558@debbugs.gnu.org; Sun, 16 Oct 2022 07:21:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50250) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok1i6-0006YY-19; Sun, 16 Oct 2022 07:21:38 -0400 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=lT+M0Q1bR44RiIEdLMtuBpLd26mtuSXxLK9lEGa0Pxk=; b=JbS2Pn3q8jAC FY3aGsm79LtdAbi39UkzSOajNH91D+DOAkKKd4l+T9mw/Jve8ePWf7K0IbAdGQRKAWtrVf+q3I3B+ /xVgc+LUzKZ1q75ZGYh3U5SjUTSO4ocCv7A8BereMRxgr6gWkQwev9fma7W4c1tLZS0Ju1q1UWNJ1 3ngUS6bEypH9D1RnBOHfF1ZzyYXfUPrk7IZdMR8LUVL/2IQ33VtCL6ArZeyTv+lJlG+dCe8Vo+hpn K5I8v5TGkbX0P6FJYVd8CYvyoNX2ioF3wb2MZQFEbyApAAAmKx9UEH0Zk+SJ3yVlp83jZDIWJYmzn sgJnuSVp4WDvw0Y1Z18zbw==; Original-Received: from [87.69.77.57] (port=4500 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok1i4-0005co-7c; Sun, 16 Oct 2022 07:21:37 -0400 In-Reply-To: <87zgdwhw0z.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 16 Oct 2022 13:01: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" Xref: news.gmane.io gmane.emacs.bugs:245636 Archived-At: > Cc: 58558@debbugs.gnu.org > From: Lars Ingebrigtsen > Date: Sun, 16 Oct 2022 13:01:48 +0200 > > > I just switched between Emacs 28 and Emacs 29 and I do note that > > right after loading Emacs and the Org file, Emacs 29 takes similar time > > with Emacs 28. > > Huh, very odd. Almost as something is... fragmenting in the buffer? > We do have many caches and stuff -- perhaps something is... degrading? > > I guess some C-level perf measurements would be handy here, but that's > not something I know much about. Anybody? AFAIU, we use elaborate caching for regular expressions, so maybe that is related. Stefan, any ideas?