-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
WIP: optimize get block selector #16368
Conversation
…on of custom sources
9ce5de3
to
2f9b63e
Compare
Without having looked at this in too much depth, I think the "parents" refactoring alone is a worthwhile refactor that likely has some optimization gain, and could maybe be split from the cachebust work. It's one I've been thinking about for a while, since the original implementation of blocks state did not optimize for parents traversal (it was not as common at the time, but is quite frequently used in selectors nowadays). |
@aduth definitely, I was also thinking about extracting it to its own PR 👍 |
Builds on top of #16075 and tries to improve the memoization of the getBlock selector by relying on denormalized reducer.
Still very early for a review, but I need to run the tests, so I'm opening a PR.