Eli Zaretskii 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.