GNU bug report logs - #58558
29.0.50; re-search-forward is slow in some buffers

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> posteo.net>

Date: Sun, 16 Oct 2022 01:27:02 UTC

Severity: normal

Found in version 29.0.50

Full log


Message #245 received at 58558 <at> debbugs.gnu.org (full text, mbox):

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 58558 <at> debbugs.gnu.org, Alan Mackenzie <acm <at> muc.de>,
 Eli Zaretskii <eliz <at> gnu.org>, larsi <at> gnus.org
Subject: Re: bug#58558: 29.0.50; re-search-forward is slow in some buffers
Date: Thu, 13 Apr 2023 20:05:34 +0000
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> diff --git a/src/fns.c b/src/fns.c
> index e92ef7e4c81..591b00103da 100644
> --- a/src/fns.c
> +++ b/src/fns.c

With this patch, I see no significant difference in time taken by re-search-forward
with and without parse-sexp-lookup-properties:

patch + workaround (setting parse-sexp-lookup-properties to nil)
Re-search time: 0.735682 sec.

patch + no workaround (leaving parse-sexp-lookup-properties to t)
Re-search time: 0.841605 sec.

no patch + workaround
Re-search time: 0.745678 sec.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




This bug report was last modified 2 years and 64 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.