question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Symbol navigation is slow in large project with python venv

See original GitHub issue

Environment 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 qq20180523-152838

Expected behavior

faster as it in small project

Steps to reproduce:

  1. install some package such as tensorflow in venv
  2. use Symbol navigation

Logs

Output for Python in the Output panel (ViewOutput, 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
zjjottcommented, May 30, 2018

@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?

0reactions
brettcannoncommented, Jul 29, 2019

Closing as this is an upstream issue which we don’t have direct control or influence over.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found