Skip to content

Editor: Optimize common dependencies bail-out#16839

Merged
aduth merged 1 commit into
masterfrom
update/block-sources-optimize-dependencies
Jul 31, 2019
Merged

Editor: Optimize common dependencies bail-out#16839
aduth merged 1 commit into
masterfrom
update/block-sources-optimize-dependencies

Conversation

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