You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python version (& distribution if applicable, e.g. Anaconda): 3.7.8 via pyenv
Expected behaviour
Analysis should complete very quickly after making edits to the file
Actual behaviour
In a VS Code project with a single seemingly simple Python file (see below) and a clean virtualenv with no dependencies any edits to the file cause the Pylance analysis to take multiple seconds.
Logs
I believe the following lines are relevant:
Info - 10:53:06 AM] [BG(1)] Long operation: checking: /xxx/pylance-test/main.py (3945ms)
[Info - 10:53:06 AM] [BG(1)] Long operation: analyzing: /xxx/pylance-test/main.py (3945ms)
Thanks for the bug report. Although it's not obvious from the bug title, I'm pretty sure this is the same issue as #590 (comment), which I'm actively working on. Let's leave this one open until I confirm that they're both the same underlying problem.
I've added some additional internal caching to handle deeply-nested expressions of this sort. The above example previously took about 2800ms to analyze. With the new caching in place, it's now down to about 500ms. This fix will be in the next release of Pylance.
Environment data
Expected behaviour
Analysis should complete very quickly after making edits to the file
Actual behaviour
In a VS Code project with a single seemingly simple Python file (see below) and a clean virtualenv with no dependencies any edits to the file cause the Pylance analysis to take multiple seconds.
Logs
I believe the following lines are relevant:
Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: