conda update spyder (or pip, if not using Anaconda)jupyter qtconsole (if console-related)spyder --resetWhile using the editor, Spyder freeses for ~30s very often. I saw with the frame explorer that it was blocked in the new code intoduced by PR #13783. After reverting the merge, spyder works again.
PASTE TRACEBACK HERE
PASTE DEPENDENCIES HERE
Hi @impact27 thanks for the feedback :+1: Not sure if @andfoy or @ccordoba12 are aware of the performance issue but pinging them here just in case
Thanks @impact27 for reporting. How long is the file that shows the freezes?
I'm experiencing the same thing too. It occurs on files that are not very long, like 500 lines maybe.
@andfoy, could you reproduce this one?
It seems that textdistance is causing delays here:

It seems that the lag was due to the usage of Jaro-Wrinkler distance, after replacing it with a normalized Jaccard index, the performance did improve:

@impact27 @jnsebgosselin could you please check if https://github.com/spyder-ide/spyder/pull/14315 improves the editor performance?
Ok, I will test it while I work. I can report back tomorrow. Thanks for working on this.
I confirm that PR #14315 fixes the editor performance for me.
Great! Thanks @jnsebgosselin for the confirmation!
Most helpful comment
Ok, I will test it while I work. I can report back tomorrow. Thanks for working on this.