Skip to content
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

Explore improving search performance to support high maxResults #127621

Open
jrieken opened this issue Jun 30, 2021 · 6 comments
Open

Explore improving search performance to support high maxResults #127621

jrieken opened this issue Jun 30, 2021 · 6 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug confirmed Issue has been confirmed by VS Code Team member search Search widget and operation issues
Milestone

Comments

@jrieken
Copy link
Member

jrieken commented Jun 30, 2021

extracted from #8563 (comment)

  • open vscode repo
  • have "search.maxResults": 200000000
  • search for ;
  • 🐌 notice how VS Code becomes slower and slower... I can see that each call to refreshAndUpdateCount takes close to 1 second and these calls happen repeatedly

Screen Shot 2021-06-30 at 11 07 10

@roblourens
Copy link
Member

I was investigating slowness in the search process, actually i didn't notice that the tree does slow down at some point. I never see the window totally stop responding though, just slow. Is there anything I can do differently @joaomoreno?

Maybe I should set a 200k limit on that setting for now

@roblourens roblourens added bug Issue identified by VS Code Team member as probable bug search Search widget and operation issues labels Jun 30, 2021
@roblourens roblourens added this to the July 2021 milestone Jun 30, 2021
@jrieken
Copy link
Member Author

jrieken commented Jun 30, 2021

I never see the window totally stop responding though, just slow

Me neither... It is not a full freeze but reaches a point where things aren't very usable anymore

@roblourens
Copy link
Member

roblourens commented Jun 30, 2021

With the diffIdentityProvider, much improved:

image

Thanks for the tip @connor4312. And there are other easy optimizations to make on my end. With this many results, we can render less often or not at all. Nobody will read through 300,000 results, but we can keep them in the model for a replace.

@roblourens roblourens modified the milestones: July 2021, June 2021 Jun 30, 2021
@roblourens
Copy link
Member

That is good enough that I'll call it a fix, but I will look at it again with #127038

chrmarti added a commit that referenced this issue Jul 1, 2021
This reverts commit 07a0575.
chrmarti added a commit that referenced this issue Jul 1, 2021
This reverts commit 07a0575.
@chrmarti
Copy link
Contributor

chrmarti commented Jul 1, 2021

Reverting the commit because it broke the smoke tests.

@chrmarti chrmarti reopened this Jul 1, 2021
@roblourens roblourens modified the milestones: June 2021, July 2021 Jul 1, 2021
@roblourens
Copy link
Member

roblourens commented Jul 1, 2021

Not brave enough to make the needed changes for this release. Thanks @chrmarti

@roblourens roblourens modified the milestones: July 2021, August 2021 Jul 29, 2021
@roblourens roblourens removed this from the January 2022 milestone Jan 28, 2022
@roblourens roblourens added this to the February 2022 milestone Jan 28, 2022
@roblourens roblourens modified the milestones: February 2022, Backlog Feb 24, 2022
@andreamah andreamah self-assigned this Oct 11, 2022
@andreamah andreamah modified the milestones: Backlog, October 2022 Oct 11, 2022
@andreamah andreamah changed the title Very high values for search.maxResults freeze VS Code Adopt DiffIdentityProvider for search results to support high maxResults Oct 24, 2022
@andreamah andreamah modified the milestones: October 2022, Backlog Oct 24, 2022
@andreamah andreamah changed the title Adopt DiffIdentityProvider for search results to support high maxResults Explore Improving Search Performance to support high maxResults Oct 28, 2022
@andreamah andreamah changed the title Explore Improving Search Performance to support high maxResults Explore improving search performance to support high maxResults Oct 28, 2022
@andreamah andreamah added the confirmed Issue has been confirmed by VS Code Team member label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug confirmed Issue has been confirmed by VS Code Team member search Search widget and operation issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@roblourens @jrieken @chrmarti @andreamah and others