-
Notifications
You must be signed in to change notification settings - Fork 28.7k
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
[perf] UI stalls and freezes when searching single whitespace #171436
Comments
Hmm, I'm not sure if I can replicate it; do you have windows defender enabled to scan the vscode folder? |
I also can't repro an issue. But do you know what it means to have a long task with no code under it? |
No, unsure what that means. Usually, it's the browser that is doing stuff. I don't reproduce today, maybe there was fluke or some unwanted accessibility mode (@deepak1556 do we still have the problem?) Tho, just before the l o n g task there is some actual work for ~500ms in JS. Maybe that's a hint? |
Nope its addressed in Insiders since f807491 |
One thing I notice is that it's refreshing the tree quite a bit. Could you try to perform the trace in OSS so that I have a better idea of what is calling it? |
My editor locks up all the time searching causing the entire UI to become unresponsive. This is not only on white space search, but on all searches. I even have what I consider to be fairly conservative inclusions and exclusions. I include I got a few CPU profiles. The @jrieken helped me do some digging through these profiles and it appears https://github.com/microsoft/vscode-distro/blob/e89a0ccea11902c6f67324fd38cd613f9bd90c5d/src/vs/workbench/contrib/search/browser/searchView.ts#L495-L498 might be the culprit. My search is unusable when the replace widget is visible, but when it is not everything is much smoother. |
I think the culprit is that This gist (and repro steps) is that this requires the replace-part of the widget to be visible (I have updated the steps accordingly) |
@lramos15 when you were taking the perf log, how many searches did you do? Was it locked up the entire time that the perf logger was running? |
Also, in the profile, I saw many instances of |
@andreamah Can you not reproduce this locally? |
I would say a small handful. It doesn't seem to matter though, when I start typing it locks up or when I go to change the query it locks up. Maybe this has to do with refreshing while the tree is populating, I'm unsure. |
I can't repro this locally, but I'm trying to look into the logs. I think it's about this call here:
|
Yes feel free to close and I will try to verify it for endgame |
**/electron-browser/**/*.test.ts
The performance trace shows some really long tasks that are preceded by some also long work
Profile-20230116T172636.json.zip
The text was updated successfully, but these errors were encountered: