From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#58558: 29.0.50; re-search-forward is slow in some buffers Date: Mon, 10 Apr 2023 12:05:42 +0200 Message-ID: <4C1F9D83-2789-49B1-A4FF-EF7EC1CEB945@gmail.com> References: <691CBF62-4E1E-495C-8AAF-8B0EEE3E199A@gmail.com> <87a5zgkqjn.fsf@localhost> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23909"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58558@debbugs.gnu.org, Eli Zaretskii , Ihor Radchenko , Stefan Monnier To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 10 12:06:17 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 1ploPh-00060X-61 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Apr 2023 12:06:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ploPT-0004Da-PO; Mon, 10 Apr 2023 06:06:03 -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 1ploPS-0004DP-MX for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 06:06:02 -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 1ploPS-00010n-CH for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 06:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ploPR-0007Sl-OU for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 06:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Apr 2023 10:06: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.168112115228669 (code B ref 58558); Mon, 10 Apr 2023 10:06:01 +0000 Original-Received: (at 58558) by debbugs.gnu.org; 10 Apr 2023 10:05:52 +0000 Original-Received: from localhost ([127.0.0.1]:34366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ploPH-0007SL-Nt for submit@debbugs.gnu.org; Mon, 10 Apr 2023 06:05:51 -0400 Original-Received: from mail-lf1-f44.google.com ([209.85.167.44]:37527) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ploPF-0007S5-SB for 58558@debbugs.gnu.org; Mon, 10 Apr 2023 06:05:50 -0400 Original-Received: by mail-lf1-f44.google.com with SMTP id a23so6291653lfk.4 for <58558@debbugs.gnu.org>; Mon, 10 Apr 2023 03:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681121144; x=1683713144; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=EvcSk7jQ0AUC+7JU7BRku9XH7yiHWaigtm+FuqtF96o=; b=JXjI5l5WT6XNqOWpzXKW5YTccN7EqPopKFZtCsZPvA8lF3gPmbuT0eFbsuwGUR+EiK Kq641yQx5U9RyGSig+MPu+//LLqjjsvCr+D2+MfikluNM4gU8nHAf7mHBDAu6UqYUbm/ BXdfu4emh9AtCqbWHelni4+1XVRx//7/naKhQumMujtodxV+wlabC88spa1Zy4rblYHF d0zRmYICpH+UFXzzpw5kVey0K4I9RzcZfXpQTMIByHFDb05PYc8HvB4Nw1QOuCIil/CJ TgfqdtGEMv3vKWpg/QE3LT8B+70ZRiyRrtubkzoyQ6YuZWizXTor5uRjmzgFsuLyGmfs U7ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681121144; x=1683713144; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=EvcSk7jQ0AUC+7JU7BRku9XH7yiHWaigtm+FuqtF96o=; b=pksagdrM3NeFZn8ZPv3Hv+qREx/iLqYyL3s7g7N5bywuU3wpJpGYx6VX6dZ/+uYbfi 3R3I8DSBZ8gwt4RhXjaBIYtApV6NJK52WmwLcCqUqlkGLphnBqCnditR+mC8vslmuM3e 22Srwt/9jqljSZkp7OEStgXblX760ndTzZKoqTce7wJg8FZ7AjK7XDwFJufMmpBt4Vqf pZ5atxLlXJ6SSLL1SGY7kn71rU+dqVFGCIiXnKxJeYVG7HjSyvNLmOLUmSrajzuQuZ7a Y8Ox0lvcnI+eTsD0lZnxDuRsvV2eiaCCq7b8nc08mkWkt/hR22SHAveRPFKwMpNgnyTR bVCg== X-Gm-Message-State: AAQBX9eKBM1mTSZ9w26ewXqMNakeWNvI043uP8b0xxpCaynmYjUQnsN9 acfCMcbP9VS6PLknCmAaDbM= X-Google-Smtp-Source: AKy350ZrIQIzHpWc9QH2Cmgb10poBPcqtkqRsTZ3Kq3HZ0IlgCErjmyoEmtD325Vdo29hQkxxb8YUg== X-Received: by 2002:a05:6512:1287:b0:4de:56a6:236b with SMTP id u7-20020a056512128700b004de56a6236bmr2590065lfs.28.1681121143647; Mon, 10 Apr 2023 03:05:43 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se. [188.150.165.235]) by smtp.gmail.com with ESMTPSA id x6-20020ac24886000000b004eb3140a6e8sm2017497lfc.200.2023.04.10.03.05.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Apr 2023 03:05:43 -0700 (PDT) In-Reply-To: <87a5zgkqjn.fsf@localhost> X-Mailer: Apple Mail (2.3654.120.0.1.15) 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:259560 Archived-At: 10 apr. 2023 kl. 11.57 skrev Ihor Radchenko : > Generating agenda with Emacs master + your patch: >=20 > :regexp-cache-hit: 6225399 :regexp-cache-miss: 109490 >=20 > Emacs 28.3 + your patch: > :regexp-cache-hit: 4968571 :regexp-cache-miss: 79637 Those miss rates are similar (1.7 % and 1.5 %, respectively) although = rather higher than we'd like. Probably no serious regexp cache thrashing = going on then, but it was good to be able to exclude it, thank you for = humouring me! > Also, I tried to play around with increasing REGEXP_CACHE_SIZE in the > past. It does not make noticeable difference in my setup. Right, that's consistent with the data collected above.