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
{{ message }}
Repository navigation
"Go To Symbol in Workspace..." has very slow "init-time" on large projects #7908
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 (@sean-mcmanus) , your observation is correct - it takes 25-30s on first search (after each time the editor is started).
Afterwards, it takes ~3s per search, which is still problemtic when trying to browse large code bases.
Let us have this issue(#7908) deal with the 25s "init-time".
I opened new issue(#7914) to deal with the "snappiness" of additional of searches.
changed the title [-]"Go To Symbol in Workspace..." is very slow on large projects[/-][+]"Go To Symbol in Workspace..." has very slow "init-time" on large projects[/+]on Aug 4, 2021
I have started to debug the issue and traced the time-consuming call to:
workspaceSymbolProvider.ts line 20: const symbols: LocalizeSymbolInformation[] = await this.client.languageClient.sendRequest(GetSymbolInfoRequest, params);
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. Sean McManus (@sean-mcmanus), can you please comment on this?
Any pointers where to look into next will be appreciated
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.
Thank you Sean McManus (@sean-mcmanus) for your clear response.
While a bit dissapointing, it is still good to know that no fix is expected soon.
I will try to search for alternatives on my end.
Thanks!
Activity
sean-mcmanus commentedon Aug 4, 2021
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?
noam-zur commentedon Aug 4, 2021
Hi Sean McManus (@sean-mcmanus) , your observation is correct - it takes 25-30s on first search (after each time the editor is started).
Afterwards, it takes ~3s per search, which is still problemtic when trying to browse large code bases.
Let us have this issue(#7908) deal with the 25s "init-time".
I opened new issue(#7914) to deal with the "snappiness" of additional of searches.
[-]"Go To Symbol in Workspace..." is very slow on large projects[/-][+]"Go To Symbol in Workspace..." has very slow "init-time" on large projects[/+]noam-zur commentedon Aug 6, 2021
I have started to debug the issue and traced the time-consuming call to:
workspaceSymbolProvider.ts line 20:
const symbols: LocalizeSymbolInformation[] = await this.client.languageClient.sendRequest(GetSymbolInfoRequest, params);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.
Sean McManus (@sean-mcmanus), can you please comment on this?
Any pointers where to look into next will be appreciated
sean-mcmanus commentedon Aug 7, 2021
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.
sean-mcmanus commentedon Aug 7, 2021
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.
noam-zur commentedon Aug 8, 2021
Thank you Sean McManus (@sean-mcmanus) for your clear response.
While a bit dissapointing, it is still good to know that no fix is expected soon.
I will try to search for alternatives on my end.
Thanks!
fearthecowboy commentedon Feb 13, 2024
A significant update to Go To Symbol has been published in the insiders build - see #11557