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: Sun, 16 Oct 2022 10:02:25 +0000 Message-ID: <87tu44jdce.fsf@localhost> References: <877d10r21x.fsf@localhost> <87zgdwyvkt.fsf@gnus.org> <87ilkk6ri5.fsf@localhost> <87v8okjei9.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2222"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58558@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 16 12:02:16 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 1ok0TI-0000PE-8z for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 12:02:16 +0200 Original-Received: from localhost ([::1]:45524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ok0TG-0003FV-UB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 06:02:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok0T5-0003F4-6S for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 06:02:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44364) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ok0T4-0002es-SL for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 06:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ok0T4-0003tI-Hj for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 06:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Oct 2022 10:02: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.166591451014936 (code B ref 58558); Sun, 16 Oct 2022 10:02:02 +0000 Original-Received: (at 58558) by debbugs.gnu.org; 16 Oct 2022 10:01:50 +0000 Original-Received: from localhost ([127.0.0.1]:43442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ok0Ss-0003sq-EG for submit@debbugs.gnu.org; Sun, 16 Oct 2022 06:01:50 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:55599) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ok0Sp-0003sY-Nk for 58558@debbugs.gnu.org; Sun, 16 Oct 2022 06:01:49 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A28B5240101 for <58558@debbugs.gnu.org>; Sun, 16 Oct 2022 12:01:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665914501; bh=ipn9M8U1q0IW4OneNNRPmTHmWM5My+AqVpZ6d9e6bxQ=; h=From:To:Cc:Subject:Date:From; b=iYYqrwldnuAJZkQeh9YaewHt5q1UQqj376aI3/IeMrVktq2S3GVHnsKBg8ckxfWQZ AJs5Lj6CtPpV8/Pp1pMTEdkq/l8nwjwf/IXV/Q4Wdk0xGIARPKjbJSDkHXalZ12xQ+ pxQ45/gbmGRQj6VANi74W84sF1hTBmH76rNT6HmUyk2UgYAQuRA626HzLULWnvh/GP vXUACh7tfRl5/+h2KhiqVIfG9gl1QXaXojATXx3lSTMjretgRuvsF9JQKOYlxXR2b+ qmmcZz/YJalqRgy/5W8g7bbP3TekZz+ApYg3kewzS+2AJr7GEnZuwRbIopJnO/ITrZ S2oZ7I5WCMDbA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MqwdF64LTz6tnk; Sun, 16 Oct 2022 12:01:37 +0200 (CEST) In-Reply-To: <87v8okjei9.fsf@gnus.org> 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:245622 Archived-At: Lars Ingebrigtsen writes: > If you switch the buffer to `clean-mode' (which should remove all text > props), does the slowdown disappear? In that case, it seems likely that > the slowdown is connected to text properties, somehow. The slowdown becomes slightly better, but nowhere close to Emacs 28: ;; Emacs 29 ;; Elapsed time: 16.953404s ;; Emacs 29 + clean-mode ;; Elapsed time: 13.290568s ;; Emacs 28 ;; Elapsed time: 0.869748s I did (setq yant/re "\\(?:\\(?:\\\\)\\)\\)\\|\\(?:\\(?:<\\(?:[[:digit:]]\\{4\\}-[[:digit:]]\\{2\\}-[[:digit:]]\\{2\\}\\(?: [[:alpha:]]+\\)?\\)\\(?: [[:digit:]]\\{1,2\\}:[[:digit:]]\\{2\\}\\(?:-[[:digit:]]\\{1,2\\}:[[:digit:]]\\{2\\}\\)?\\)?\\(?:\\(?: [+.:-]\\{1,2\\}[[:digit:]]+[dhmwy]\\(?:/[[:digit:]]+[dhmwy]\\)?\\)\\{1,2\\}\\)?>\\)\\|^\\*+[[:blank:]]+\\(?:[[:upper:]]+[[:blank:]]+\\)?\\[#A]\\|^[[:space:]]*:STYLE:[[:space:]]+habit[[:space:]]*$\\)\\)") (benchmark-progn (goto-char (point-min)) (while (re-search-forward yant/re nil t))) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at