Skip to content

WIP: optimize get block selector#16368

Closed
youknowriad wants to merge 13 commits into
masterfrom
try/optimize-get-block-selector
Closed

WIP: optimize get block selector#16368
youknowriad wants to merge 13 commits into
masterfrom
try/optimize-get-block-selector

Conversation

@youknowriad
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

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

@youknowriad
Copy link
Copy Markdown
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