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

WIP: optimize get block selector #16368

Closed
wants to merge 13 commits into from

Conversation

youknowriad
Copy link
Contributor

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.

@youknowriad youknowriad added [Status] In Progress Tracking issues with work in progress [Type] Performance Related to performance efforts labels Jul 1, 2019
@youknowriad youknowriad self-assigned this Jul 1, 2019
@youknowriad youknowriad force-pushed the try/optimize-get-block-selector branch from 9ce5de3 to 2f9b63e Compare July 1, 2019 14:30
@aduth
Copy link
Member

aduth commented Jul 1, 2019

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).

@youknowriad
Copy link
Contributor Author

@aduth definitely, I was also thinking about extracting it to its own PR 👍

@youknowriad
Copy link
Contributor Author

Going to close this as it's now largely covered by #16392 and #16407

@youknowriad youknowriad closed this Jul 4, 2019
@youknowriad youknowriad deleted the try/optimize-get-block-selector branch July 4, 2019 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress [Type] Performance Related to performance efforts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants