[wp-trac] [WordPress Trac] #59443: Block Supports: Re-use instance of Tag Processor when adding layout classes
WordPress Trac
noreply at wordpress.org
Tue Oct 3 17:24:08 UTC 2023
#59443: Block Supports: Re-use instance of Tag Processor when adding layout classes
---------------------------------------+----------------------------
Reporter: dmsnell | Owner: isabel_brison
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.4
Component: Editor | Version: trunk
Severity: normal | Resolution:
Keywords: gutenberg-merge has-patch | Focuses: performance
---------------------------------------+----------------------------
Changes (by spacedmonkey):
* focuses: => performance
Comment:
While testing the WordPress 6.4 release, I noticed that
`wp_render_layout_support_flag` is now using a lot of resources. This
seems to be because this function gets calls a lot ( around 300-400 times
per page load ) and uses WP_HTML_Tag_Processor to update html markup. See
screenshot attached.
Reopenning ticket to see if we can fix the performance regression here.
CC @isabel_brison @dmsnell for their thoughts as they committed this. Also
flagging to @joemcgill and @flixos90 for performance reviews of patches.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59443#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list