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#58558: 29.0.50; re-search-forward is slow in some buffers Date: Mon, 10 Apr 2023 14:55:09 +0000 Message-ID: <87bkjvn5wy.fsf@localhost> References: <877d10r21x.fsf@localhost> <87mt9tbbbp.fsf@gnus.org> <8335bl18lo.fsf@gnu.org> <87wn8x9eqb.fsf@gnus.org> <87tu1zd2c6.fsf@localhost> <83h6xzphxm.fsf@gnu.org> <87wn6vbfaa.fsf@localhost> <838rjbpecw.fsf@gnu.org> <87fsdjwb4e.fsf@localhost> <874jtyuqax.fsf@localhost> <83zgbqm8q6.fsf@gnu.org> <87sfhit8ug.fsf@localhost> <83tu1ym6jo.fsf@gnu.org> <87h6xyt77x.fsf@localhost> <87h6ttkz6n.fsf@localhost> <838rf5qkpt.fsf@gnu.org> <87lej0zv92.fsf@localhost> <83ttxol6f5.fsf@gnu.org> <87h6tolybs.fsf@localhost> <83mt3fc0t8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22542"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58558@debbugs.gnu.org, larsi@gnus.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 10 16:54:12 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 1plsuJ-0005eE-UX for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Apr 2023 16:54:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1plsuC-0000t5-LV; Mon, 10 Apr 2023 10:54:04 -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 1plsuA-0000sh-UQ for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 10:54:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1plsuA-0001Fa-MP for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 10:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1plsuA-0006hj-2K for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 10:54: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: Mon, 10 Apr 2023 14:54:02 +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.168113838225646 (code B ref 58558); Mon, 10 Apr 2023 14:54:02 +0000 Original-Received: (at 58558) by debbugs.gnu.org; 10 Apr 2023 14:53:02 +0000 Original-Received: from localhost ([127.0.0.1]:35647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plstB-0006fU-IF for submit@debbugs.gnu.org; Mon, 10 Apr 2023 10:53:01 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:43455) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plst9-0006fF-KF for 58558@debbugs.gnu.org; Mon, 10 Apr 2023 10:53:00 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id ADAF4240228 for <58558@debbugs.gnu.org>; Mon, 10 Apr 2023 16:52:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681138373; bh=XY3EeROp3vIMBgNGYTmcFyXbS3EmM9kh9Zo1krvbfek=; h=From:To:Cc:Subject:Date:From; b=DhQS9EigXWozW6g3E6b+VITMFUCqZJkBawciS+2kdB35N9EmH0CwtfDiUqVhx5rt5 31qr5nXPhrg/GEdmcY6x6jE0Llf2gABLEvfYhye96/KJxe7iiLaI/gxJiAfd9XgFK7 VYgnF5laeSgMZhj5TbuLB+yZtQ/gvGtZUIbg1jl7y9oGPJmfZq7EEL10cKlanV7yrE IzsS1kuXcMDchypPztZPLot7nd26vI/szwamGJVtgHyfg94wNIYUf2OsWLoDbISkx/ ip0xzbVqHPpvFBh/9ohgIM2IxgKsmAEtdFgTNynet85+C+NvwdBixS7t0TppLr8bya CYO+bNvMOxwNg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PwBm45dJJz6tw7; Mon, 10 Apr 2023 16:52:52 +0200 (CEST) In-Reply-To: <83mt3fc0t8.fsf@gnu.org> 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:259585 Archived-At: Eli Zaretskii writes: >> > How does this compare with a "fast" session doing the same? >> >> "fast" (emacs 28) session does not have this call tree contributing >> significantly. > > Hmm... I though when you just start a new Emacs session of Emacs 30 it > also is fast, and becomes progressively slower with time? Or am I > confused? My original bug report is about agenda generation being slow because of re-search-forward slowdown. Later, I tried to simplify the recipe and found that direct calls to re-search-forward become slower over time (but still with my setup). Originally, agenda generation is slower on master compared to Emacs 28 even right after startup. In my last message and perf data, I have been looking into agenda generation. > I believe perf is capable of showing the number of calls as well? Can > you compare the number of calls between the two versions? I can only see https://www.brendangregg.com/blog/2014-07-03/perf-counting.html, but it appears to be only for built-in events. Do you know how to count calls to specific function using perf? I am not familiar at all with perf. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at