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

Editor: Optimize common dependencies bail-out #16839

Merged
merged 1 commit into from
Jul 31, 2019

Conversation

aduth
Copy link
Member

@aduth aduth commented Jul 31, 2019

Related: #16402 (comment), #16402 (comment)

This pull request seeks to apply a minor optimization to the block sources behavior implemented in #16402 to avoid repeated validation of common data access within loops to sources and blocks applications. It's unlikely this has a significant impact, but these loops are both called for every change to a block in a post (e.g. each keypress).

Testing Instructions:

Repeat testing instructions from #16402.

@aduth aduth added [Type] Performance Related to performance efforts [Package] Editor /packages/editor labels Jul 31, 2019
@aduth aduth requested a review from mcsf July 31, 2019 14:32
@aduth aduth merged commit cd3baf4 into master Jul 31, 2019
@aduth aduth deleted the update/block-sources-optimize-dependencies branch July 31, 2019 14:58
@youknowriad youknowriad added this to the Gutenberg 6.3 milestone Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Editor /packages/editor [Type] Performance Related to performance efforts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants