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: Mon, 10 Apr 2023 19:04:35 +0300 Message-ID: <83leizbu5o.fsf@gnu.org> 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> <87bkjvn5wy.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22846"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58558@debbugs.gnu.org, larsi@gnus.org, monnier@iro.umontreal.ca To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 10 18:05:16 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 1plu16-0005lm-Cf for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Apr 2023 18:05:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1plu0v-0003V1-9i; Mon, 10 Apr 2023 12:05:05 -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 1plu0s-0003Un-VL for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 12:05: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 1plu0s-0006nl-Hp for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 12:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1plu0s-0000Vi-A3 for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 12:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Apr 2023 16:05: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.16811426441865 (code B ref 58558); Mon, 10 Apr 2023 16:05:02 +0000 Original-Received: (at 58558) by debbugs.gnu.org; 10 Apr 2023 16:04:04 +0000 Original-Received: from localhost ([127.0.0.1]:35788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pltzw-0000U1-Gt for submit@debbugs.gnu.org; Mon, 10 Apr 2023 12:04:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pltzu-0000TU-6Y for 58558@debbugs.gnu.org; Mon, 10 Apr 2023 12:04:02 -0400 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 1pltzn-0006gL-QW; Mon, 10 Apr 2023 12:03:55 -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=JF++mpxHw6KBaUyjLcafDxsc8nkzoDGs6vNJPkrQi4Y=; b=EAN7dNiyrPDK kDy5lLKtNiSZ1CdaMBy6XkWTeDi/kCei+QSHYPCpQ8wTpBIqvE5eoujdxEPhJoG+4S8+3IsxEQ1Nh oOUoJKhfd1vD48Dh/PyOR+oyTfNLeZL2z78RcRA1f+Bv/ftlWPKvYlZW9uaovewzf3Bv30z7IywjQ px+BHzIyzdKS8Ts1ggLZyRTeq29vLZQq90DxaeSw591WnQk7eRuAYKY+JfU7QkoAlS8a5GLDB6ny5 2lAYuMKLI94+Xql0XjVn6zaOSe0KSXrXv4VUW87uWqoiBYsGUmkbjYJCxQr34QmMTnq4Zr1Kdk38H lWYqXZCkbxdfVyatDtpOsw==; Original-Received: from [87.69.77.57] (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 1pltzn-000292-4s; Mon, 10 Apr 2023 12:03:55 -0400 In-Reply-To: <87bkjvn5wy.fsf@localhost> (message from Ihor Radchenko on Mon, 10 Apr 2023 14:55:09 +0000) 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:259589 Archived-At: > From: Ihor Radchenko > Cc: monnier@iro.umontreal.ca, larsi@gnus.org, 58558@debbugs.gnu.org > Date: Mon, 10 Apr 2023 14:55:09 +0000 > > > 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. I thought that was part of the profile? But if not, then maybe Stefan's "poor-man's counters" will be an easier device for answering that particular question: just increment it before every call to SYNTAX_TABLE_BYTE_TO_CHAR that you find inside re_match_2_internal, and then compare the counts with Emacs 28.