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: Tue, 18 Oct 2022 21:38:39 +0300 Message-ID: <83pmepyo28.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> <83sfjo3tfw.fsf@gnu.org> <878rlfjmjh.fsf@localhost> <87mt9tbbbp.fsf@gnus.org> <8335bl18lo.fsf@gnu.org> <87wn8x9eqb.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16259"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58558@debbugs.gnu.org, yantar92@posteo.net, monnier@iro.umontreal.ca To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 18 20:39:30 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 1okrUw-00041v-1G for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Oct 2022 20:39:30 +0200 Original-Received: from localhost ([::1]:40820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okrUu-0007RS-FE for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Oct 2022 14:39:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okrUU-0007Q1-9F for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2022 14:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55045) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okrUT-00054z-UW for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2022 14:39:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okrUT-0000k1-Mt for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2022 14:39: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: Tue, 18 Oct 2022 18:39: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.16661183402842 (code B ref 58558); Tue, 18 Oct 2022 18:39:01 +0000 Original-Received: (at 58558) by debbugs.gnu.org; 18 Oct 2022 18:39:00 +0000 Original-Received: from localhost ([127.0.0.1]:54123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okrUS-0000jm-9C for submit@debbugs.gnu.org; Tue, 18 Oct 2022 14:39:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:32926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okrUP-0000jS-Fv for 58558@debbugs.gnu.org; Tue, 18 Oct 2022 14:38:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34458) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okrUH-00052y-1C; Tue, 18 Oct 2022 14:38:49 -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=Jxv66cXJXtKwPSfju0Oi72YtIbQ1bsNRA+jabmZktjs=; b=o9Fjbt+I80CA eVO2pVNsjQzxtK1F1/gLXWvRfCKkp3z+AfgOEd9I2oEpkQ3gTgXMsCWJf/ZGkPeVQQDm2pPGuBK// PEADRsgG+ZFIUE+GSKZ7p1lUBFzCldTU/k+E61lXVvQeJ7yur09D/z85JTr65ucxZLjq8kAfYV15J /Jz+vHtAkPoC/Rf62t6orwjYe1lYrOD5DTJlj6C3olHw16HVo00rUfFyMSDEooLdjHjwgTf1kIFA8 GysByxph3Rr1cDh7bGLoK6PuC4XXt0KFLiOvVSKWhEfxIVZnE6M31JwJWIlk7c3vrkx/Q4gMOX0ao HZo/667loabwXastxDaVMQ==; Original-Received: from [87.69.77.57] (port=4994 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 1okrUG-000458-CN; Tue, 18 Oct 2022 14:38:48 -0400 In-Reply-To: <87wn8x9eqb.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 18 Oct 2022 20:19:24 +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:245824 Archived-At: > From: Lars Ingebrigtsen > Cc: yantar92@posteo.net, monnier@iro.umontreal.ca, 58558@debbugs.gnu.org > Date: Tue, 18 Oct 2022 20:19:24 +0200 > > > What did you try? It was quite simple, AFAIR, last time I tried. > > I thought it might be easier to see the differences in results if one > first attached perf to a fresh (fast) Emacs and got the trace, and the > waited until Emacs got slow, and repeated the same thing under another > trace. > > perf is able to do this by: > > perf record -p -g I never tried that, always started Emacs under perf to begin with. > and > > perf report > > then shows me stuff, but I don't even know what to look for when > interpreting that. I thought you wanted to compare two or more profiles taken at different times? Then looking at percentages of the same functions could tell something. Since the complaint is about regexp search, I guess re_compile_pattern and re_match_2_internal and their subroutines would be the immediate suspects. Or maybe re-search-forward, which is a couple of levels higher.