-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize async selector cache lookups (#1736)
Summary: Pull Request resolved: #1736 Optimize looking up existing executions of pending async selectors. Instead of having to transitively evaluate all dependencies we can cache if a particular state version has been checked as valid for the current evaluation. This also includes a fix for the following condition: * An async selector discovers a new dependency but doesn't resolve yet. That dependency is based on the state when the evaluation stated (so each evaluation always has a consistent picture of state) * However, when the new dependency was discovered either the current store has a new version of state or another store does. This new version has a new value for the dependency which may cause the selector to evaluate differently. Reviewed By: yukonfb Differential Revision: D35608162 fbshipit-source-id: 5141d41816f4c6cc2a8073d34d8b66cd48565e5f
- Loading branch information
1 parent
f61a371
commit 6ead667
Showing
4 changed files
with
269 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.