GNU bug report logs -
#58558
29.0.50; re-search-forward is slow in some buffers
Previous Next
Full log
Message #50 received at 58558 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: yantar92 <at> posteo.net, monnier <at> iro.umontreal.ca, 58558 <at> debbugs.gnu.org
> Date: Tue, 18 Oct 2022 20:19:24 +0200
>
> > What did you try? It was quite simple, AFAIR, last time I tried.
>
> I thought it might be easier to see the differences in results if one
> first attached perf to a fresh (fast) Emacs and got the trace, and the
> waited until Emacs got slow, and repeated the same thing under another
> trace.
>
> perf is able to do this by:
>
> perf record -p <PID> -g
I never tried that, always started Emacs under perf to begin with.
> and
>
> perf report
>
> then shows me stuff, but I don't even know what to look for when
> interpreting that.
I thought you wanted to compare two or more profiles taken at
different times? Then looking at percentages of the same functions
could tell something. Since the complaint is about regexp search, I
guess re_compile_pattern and re_match_2_internal and their subroutines
would be the immediate suspects. Or maybe re-search-forward, which is
a couple of levels higher.
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.