This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Do not call setItems()
every time that the fuzzy finder is shown
#373
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the Change
This PR unblocks the work to use
native-fuzzy
to improve the filtering performance by mitigating one of its concerns.Basically, before this PR the UI was blocked by the execution of the
setItems()
method every time the fuzzy finder was shown (and it delayed its appearance in the UI). This was not a big problem before because thesetItems()
method used to be quite fast, but with the addition ofnative-fuzzy
we need to do more expensive things here (we need to serialize and pass the whole list of items to thenative-fuzzy
).Alternate Designs
N/A
Benefits
Possible Drawbacks
N/A
Applicable Issues
#370