Subject: Re: bug#51006: 28.0.60; Slowness while navigating in inferior-python-mode

From: Eli Zaretskii <[email-masked]>
Date: Mon, 04 Oct 2021 22:52:41 +0300

> From: Simen Heggestøyl <[email-masked]>
> Cc: [email-masked]
> Date: Mon, 04 Oct 2021 21:21:56 +0200
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Please repeat the profiling experiment, but after loading python.el
> > (NOT python.elc).  This should produce a more detailed profile that
> > would pinpoint the culprit more accurately.  Based on skimming the
> > source code, my first suspect is syntax-ppss, but that could be a bad
> > guess.
> 
> Hi Eli, thanks for the quick response.
> 
> I repeated the experiment after deleting python.elc to avoid loading it
> on startup (maybe there's a simpler way of preventing that?). The new
> profiler report is attached.
> 
> Another detail: This doesn't happen in the ordinary python-mode, only in
> inferior-python-mode.

Thanks.  So yes, it's syntax-ppss.  Time to bring Stefan (CC'ed) on
board of this discussion.