-
Notifications
You must be signed in to change notification settings - Fork 159
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
Keep isSoftRemoved calls in-iteration, prevent List updates. #8370
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I like this change - it seems to distribute complexity
Not sure: why? In two cases the change is local: it is replacing a |
It seems to me that it distributes the burden of attention from the creation of the snapshot to the usage of it. That feels backwards, and not worth it for a 1% improvement. Is there a way to construct the snapshot so it never contains the soft-removed packages in the first place? |
The changes on line 135 in |
Ah! - but why do you then need to account for them in app/lib/frontend/handlers/custom_api.dart line 82? |
That's a different use case with a different data source. We get the names from the name tracker, which has all the names from all the |
This is about 1-1.5% of the time when loading the search snapshot.