Symbol navigation is slow in large project with python venv
See original GitHub issueEnvironment data
- VS Code version: 1.23.1
- Extension version (available under the Extensions sidebar): 2018.4.0
- OS and version: MacOS 10.13.4
- Python version (& distribution if applicable, e.g. Anaconda): Python3.6
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): venv
- Relevant/affected Python packages and their versions: tensorflow
Actual behavior
Symbol navigation is slow,about 5 seconds after open symbol navigation every time
large gif here:5.7M ,here is a compress gif,it’s speed up
Expected behavior
faster as it in small project
Steps to reproduce:
- install some package such as tensorflow in venv
- use Symbol navigation
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
[2018-05-23 15:18:15.484] [exthost2] [info] ExtensionService#_doActivateExtension vscode.python {"startup":false,"activationEvent":"onLanguage:python"}
[2018-05-23 15:18:15.484] [exthost2] [info] ExtensionService#loadCommonJSModule /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/python/out/pythonMain
[2018-05-23 15:18:15.486] [exthost2] [info] ExtensionService#_doActivateExtension ms-python.python {"startup":false,"activationEvent":"onLanguage:python"}
[2018-05-23 15:18:15.486] [exthost2] [info] ExtensionService#loadCommonJSModule /Users/zhutou/.vscode/extensions/ms-python.python-2018.4.0/out/client/extension
How can I profile this behavior?I have enable vscode profile but there is nothing about this extensions
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
what does virtualenv faster than venv mean? just when ...
The comment says venv is slower due to not having the app-data seed method. AFAICT, app-data is just a cache used for installing...
Read more >Changelog — Python 3.11.1 documentation
gh-99370: Fix zip path for venv created from a non-installed python on POSIX ... DataError exception type in case of too large strings...
Read more >I'm sick of PyCharm. It's insanely slow. r/python, what IDE do ...
I like PyCharm and all of its features, but it is just insanely slow. It takes up 400 MB of memory and it...
Read more >Python Virtual Environments: A Primer
In this tutorial, you'll learn how to use a Python virtual environment to manage your Python projects. You'll also dive deep into the ......
Read more >Virtual environments for absolute beginners — what is it and ...
We'll see in the coming parts that when you create a venv for your project you actually install Python, pip and the dependencies-folder...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@brettcannon but actually,everytime the same file open the navigation,it’s slow I don’t know,why a file with less than 100 lines cost so long time. as I know ,Symbol navigation should only load once?
Closing as this is an upstream issue which we don’t have direct control or influence over.