Subject: Re: bug#39598: 26.3; Emacs is extremely unresponsive on a trivial python file

From: Eli Zaretskii <[email-masked]>
Date: Fri, 14 Feb 2020 18:17:32 +0200

> From: Ivan Oreshnikov <[email-masked]>
> Date: Fri, 14 Feb 2020 17:08:19 +0100
> Cc: [email-masked]
> 
> Sorry, didn't notice your first message (didn't expect such a quick response :).
> 
> Yes, my profile is very similar to yours:

It is.  Looks like python-nav--forward-sexp is indeed the main
culprit.  To narrow this down even more, I suggest to load python.el
(not .elc!) manually into a new Emacs session, then repeat the
experiment, and show the profile below python-nav--forward-sexp.  This
might point out the part of that function that takes the lion's share
of the run time.

Thanks.