[wp-trac] [WordPress Trac] #60749: Interactivity API: Avoid unnecessary processing of directives

WordPress Trac noreply at wordpress.org
Wed Mar 13 10:40:10 UTC 2024


#60749: Interactivity API: Avoid unnecessary processing of directives
-------------------------------------------+--------------------------
 Reporter:  joemcgill                      |       Owner:  swissspidy
     Type:  defect (bug)                   |      Status:  closed
 Priority:  normal                         |   Milestone:  6.5
Component:  Editor                         |     Version:
 Severity:  normal                         |  Resolution:  fixed
 Keywords:  has-patch commit dev-feedback  |     Focuses:  performance
-------------------------------------------+--------------------------
Changes (by swissspidy):

 * owner:  (none) => swissspidy
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57824" 57824]:
 {{{
 #!CommitTicketReference repository="" revision="57824"
 Interactivity API: Do not process directives when there aren’t any.

 Short-circuits directive processing when the markup does not actually
 contain any `data-wp-*` attributes.
 This reduces function calls and memory usage for the best case scenario
 due to not involving `WP_HTML_Tag_Processor`.

 Props joemcgill, swissspidy, gziolo, cbravobernal, flixos90.
 Fixes #60749.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60749#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list