-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Editor freezes while scrolling through project search results while it's still streaming #20436
Comments
Interesting, I somehow cannot repro this on But I have created a branch with the "fix", if you want to test it on your case: #20470 |
Hey @SomeoneToIgnore, thanks for looking into this. I will try to reproduce it again with the latest main and see if its fixed now. |
FindingsSo the change/fix that you made seem to do something, because it does not pop up anymore inside the profile as a slow task what is nice! I profiled your change/fix on nightly and a dev profile build with
ProjectSearchHangAfterChange.trace.zip Toggle assistant panelI also added a profile for toggling the assistant panel, while having a lot of project search results open (10K). Because one of the things I noticed that the Screen.Recording.2024-11-10.at.12.16.24.mov![]() ![]() Terminal Log:
|
Sorry, still have nothing like that on my profiles of But *_map/layouting is bad news then, as itself it's most probably not the thing we can improve and only take a step back and understand what is being done wrong. I have no good clues now though. |
If you want to pair on this to find out what is taking so much time, let me know happy to help! |
that happens to me regardless wether the results are streaming or not, and i don’t even have the assistant panel enabled |
Thank you for the proposal, @RemcoSmitsDev So, maybe let's do it next year if you won't find anyone by then 🙂 Another thing that might be very related and I've missed, are the actual files you're getting: Zed overly tries to start LSP servers for all open excerpts and that is not what we should do. |
Alright, thanks @SomeoneToIgnore for looking into this anyway! Yeah, I did not see that inside the profile, or I'm just not reading it correctly. |
Not sure if anything changed recently but I cannot reproduce this issue. I used a large repo to test: https://github.com/chromium/chromium and searched for a common string. The results buffer quickly reached the 10.000 results limit and everything works smoothly. |
Check for existing issues
Describe the bug / provide steps to reproduce it
Issue
There's a performance issue when searching through a large number of results (approximately 10,000). After pressing 'Enter' to initiate the search, scrolling becomes significantly delayed while results are still streaming in. This regression appears to be caused by the continuous refreshing of runnables.
Reproduce steps:
You should experience noticeable lag or hanging during the scrolling process, similar to the original issue described.
https://github.com/user-attachments/files/17683266/ProjectSearchHang.trace.zip
Environment
Zed: v0.162.0 (Zed Nightly 706c385)
OS: macOS 15.1.0
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
Screen.Recording.2024-11-08.at.19.55.34.mov
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: