From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58558: 29.0.50; re-search-forward is slow in some buffers Date: Wed, 12 Apr 2023 10:38:50 -0400 Message-ID: References: <877d10r21x.fsf@localhost> <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> <87zg7e8xnt.fsf@localhost> <83ttxmab7x.fsf@gnu.org> <87sfd5b4oy.fsf@localhost> <83fs956ulv.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3853"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 58558@debbugs.gnu.org, acm@muc.de, yantar92@posteo.net, larsi@gnus.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 12 16:40:13 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 1pmbds-0000lS-Ps for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Apr 2023 16:40:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmbdk-0007RX-St; Wed, 12 Apr 2023 10:40: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 1pmbdi-0007R1-Jw for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 10:40: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 1pmbdi-0002mN-A2 for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 10:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmbdi-00036M-5V for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 10:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Apr 2023 14:40: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.168131034511825 (code B ref 58558); Wed, 12 Apr 2023 14:40:02 +0000 Original-Received: (at 58558) by debbugs.gnu.org; 12 Apr 2023 14:39:05 +0000 Original-Received: from localhost ([127.0.0.1]:40587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmbcm-00034f-JI for submit@debbugs.gnu.org; Wed, 12 Apr 2023 10:39:04 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:13307) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmbck-000344-BB for 58558@debbugs.gnu.org; Wed, 12 Apr 2023 10:39:02 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 1C6C21000E7; Wed, 12 Apr 2023 10:38:57 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7EF4310000D; Wed, 12 Apr 2023 10:38:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1681310331; bh=32gGjn90l+1lq+CNv4v5QZxh1IWxUsZ4M+ODicyx/l0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=JoU1xbtvntGqIBfkrSIZHfpXQPA4xeQL20jFR6vlivQsAscWc9121W8N6ybaCd7TQ bmi4lsNRO24Tfcy1OzmNJ/K62sGrpT7hgkALPTHhrF3quHQYgYQ60XlJ3yqMEBafSh OgSSVWcJnplXbULBR5ZWmfP9lLzWHFuvNDozDdJapfj0sHR/uxXcbCvsOG0/J72WW0 xZe+WMqT7QGcWE6ZZ+YBzmMah0L+VZanCKS73BJfgTN8Prk1h65lf3no2whYvS5W2z ZT5c5kqOhPzaqKuFCz11B27GDA3yLmaiEdkc1gMU5Ib9s8X2oYVoMeq4oJdVuchKGg 5hB+6lxKFCT3w== Original-Received: from pastel (unknown [45.72.217.176]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1B2411202F2; Wed, 12 Apr 2023 10:38:51 -0400 (EDT) In-Reply-To: <83fs956ulv.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 12 Apr 2023 17:30:36 +0300") 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:259754 Archived-At: >> > 1. emacs -Q >> > 2. M-: (require 'cc-langs) >> > 3. C-x b asd >> > 4. M-: parse-sexp-lookup-properties => t >> > >> > On Emacs 28, (4) yields nil. >> >> I suspect that the patch below might fix the immediate problem. >> Of course, setting `parse-sexp-lookup-properties` should not have such >> a major performance impact, so maybe we should keep digging into >> the problem. > > Also, that code was there in Emacs 28 as well, so how come it suddenly > has this effect now? The effect of the code depends on whether the buffer that's current when `cc-defs.el` is loaded has set `parse-sexp-lookup-properties` buffer-locally or not. I don't have Emacs-28 at hand, but the value of `parse-sexp-lookup-properties` in *scratch* is (buffer-local) t in Emacs-29 and (global) nil in Emacs-27. Stefan