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 09:57:48 +0000 Message-ID: <87a5zgkqjn.fsf@localhost> References: <691CBF62-4E1E-495C-8AAF-8B0EEE3E199A@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13909"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58558@debbugs.gnu.org, Eli Zaretskii , Ihor Radchenko , Stefan Monnier To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 10 11:56:18 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 1ploG1-0003Pg-BG for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Apr 2023 11:56:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ploFp-0001vu-92; Mon, 10 Apr 2023 05:56: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 1ploFm-0001sZ-E5 for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 05:56: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 1ploFl-0007VL-Sl for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 05:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ploFl-0007At-Op for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 05:56:01 -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 09:56: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.168112053927548 (code B ref 58558); Mon, 10 Apr 2023 09:56:01 +0000 Original-Received: (at 58558) by debbugs.gnu.org; 10 Apr 2023 09:55:39 +0000 Original-Received: from localhost ([127.0.0.1]:34359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ploFP-0007AF-Do for submit@debbugs.gnu.org; Mon, 10 Apr 2023 05:55:39 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:33091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ploFN-0007A2-R2 for 58558@debbugs.gnu.org; Mon, 10 Apr 2023 05:55:38 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0C61624011C for <58558@debbugs.gnu.org>; Mon, 10 Apr 2023 11:55:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681120532; bh=DbAG9xlh59U961JZO67XNrIEm3njhW7Fe+eyDrhjMNk=; h=From:To:Cc:Subject:Date:From; b=ccFJLP7+bOSxo7RwhuzO3s+ZNSuspfpRae/1P2VIw2CX9dkdf0kko1Odnz6EQzvjF xC2U5nvydux1/z4zctJZ1ndvnmtLiwZAsDy43NAGfGSuWDPKaxQTX9fmgEXEbzRRRX oZkrT49fI6jdBKlIMYS1mccntvGdJy1+eXdnc9Pset5F+MJh+LCBhnGWd4E0t8qxd4 yk1xQ9KKQU/hP78/rb8H2PbN6vbvtaJ5rK2Rz9FgDXt1dSmRgkdloyxIdIhykUPje8 r/IBdWOwsc80YvWX7RZQdF3wNARdGX/f3buIK4PAaOF6jUeS63Jn0Qohp6INGgB7p/ WFc1frbcUEYgQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Pw48z02FPz6tsf; Mon, 10 Apr 2023 11:55:30 +0200 (CEST) In-Reply-To: <691CBF62-4E1E-495C-8AAF-8B0EEE3E199A@gmail.com> 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:259559 Archived-At: Mattias Engdeg=C3=A5rd writes: > Ihor, would you consider the possibility of regexp cache thrashing? It do= es occur from time to time; that cache is quite small. Try this instrumenta= tion patch. (We should probably have something like it permanently.) Generating agenda with Emacs master + your patch: :regexp-cache-hit: 6225399 :regexp-cache-miss: 109490 Emacs 28.3 + your patch: :regexp-cache-hit: 4968571 :regexp-cache-miss: 79637 Also, I tried to play around with increasing REGEXP_CACHE_SIZE in the past. It does not make noticeable difference in my setup. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at