New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spyder very slow when working on large python files #11000
Comments
An example: (rename to .py) |
Could you help us with this one @impact27? |
I think I can help with optimizing the scrollflag paintEvent if you need help with it. |
That'd be really appreciated, thanks! |
Ok I'm on it. I won't touch the |
This would be related to #10992 |
I opened #11036 for |
so this issue still persists for me, even when deactivating code folding, and it only stops when I deactivate the LSP altogether. symptoms are that whenever I add or modify code to large files, my input is being evaluated, and the the editor freezes for about 2 secs before I can do something again. do you want me to open a new issue? |
Hey @mluerig, we're aware of this problem (see issue #21637). Some changes to improve the situation will arrive in Spyder 6.0 and we'll continue working on it in 6.1 (to be released at the end of the year). To give you more context about this: it's not an easy problem to solve because we're not able to run the most expensive computations needed for the LSP in threads due to Python's GIL (Global Interpreter Lock). So we have to find clever ways to do that and that takes time and effort. |
hey, thanks for the update - ok, I'll be patient 😄 |
Description
What steps will reproduce the problem?
A few things in spyder are slowing down spyder considerably, mostly whrn working with big files. The functions that take most of the time are:
paintEvent
fromspyder/plugins/editor/panels/scrollflag.py
__mark_occurences
inspyder/plugins/editor/widgets/codeeditor.py
Versions
Dependencies
The text was updated successfully, but these errors were encountered: