-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
"Go To Symbol in Workspace..." has very slow "init-time" on large projects #7908
Comments
I'm seeing the 1st Go to Symbol be slow but then it speeds up, but still takes a few seconds. Is that what you're seeing or do you see 25 seconds repeatedly? |
Hi @sean-mcmanus , your observation is correct - it takes 25-30s on first search (after each time the editor is started). |
I have started to debug the issue and traced the time-consuming call to: Now I am trying to understand if I can I debug it any further or the request is being handled by a closed-source client process. |
It's in our closed source cpptools server binary. The slow Go to Symbol in Workspace issue issue has been known for 5 years or so...the code hasn't changed much in 5 years, i.e. we've been working on other systems, and improving the performance of Go to Symbol in Workspace hasn't gotten high enough priority. As I recall, it's not an easy fix, and involves code shared with VS. |
You could try to run a profiler on cpptools to get more performance data: https://github.com/microsoft/vscode-cpptools/wiki/Troubleshooting-Performance-Issues ...but it's unlikely the results of that would lead us to be able to quickly fix it. |
Thank you @sean-mcmanus for your clear response. |
A significant update to Go To Symbol has been published in the insiders build - see #11557 |
Bug type: Language Service
"Go To Symbol in Workspace..."(CTRL+T) is very slow on large projects.
As a benchmark, I opened a workspace on Linux code base, and searched for "memory".
Results for the first search are abnormally long (~25 seconds)
Notes:
Expected behavior
Full Workspace Symbols Search should return results faster
The text was updated successfully, but these errors were encountered: