[wp-trac] [WordPress Trac] #58196: Improve performance of `_get_block_templates_paths`

WordPress Trac noreply at wordpress.org
Tue May 2 18:07:04 UTC 2023


#58196: Improve performance of `_get_block_templates_paths`
-----------------------------------------+------------------------------
 Reporter:  spacedmonkey                 |       Owner:  (none)
     Type:  enhancement                  |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Themes                       |     Version:  5.9
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:  performance
-----------------------------------------+------------------------------

Comment (by spacedmonkey):

 Running this against Local.wp gives me different numbers.
 || || 6.2 || 6.2 + patch || 6.3-alpha-55700 || 6.3-alpha-55700 + patch ||
 || Response Time (median)||109.71 || 108.44 || 97.33 || 96.49 ||
 || wp-load-alloptions-query (median)||0.35 || 0.35 || 0.34 || 0.35 ||
 || wp-before-template (median)||23.06 || 22.56 || 19.26 || 18.59 ||
 || wp-template (median)||11.13 || 11.04 || 11.31 || 11.2 ||
 || wp-total (median)||34.28 || 33.72 || 30.71 || 29.92 ||

 Doing some more investigations.

 Doing some inline profiling

 6.3-alpha-55700
 [[Image(https://core.trac.wordpress.org/raw-
 attachment/ticket/58196/Screenshot%202023-05-02%20at%2018.59.04.png)]]

 6.3-alpha-55700 + patch
 [[Image(https://core.trac.wordpress.org/raw-
 attachment/ticket/58196/Screenshot%202023-05-02%20at%2018.57.09.png)]]

 Time and memory usage are a lot less in Local WP. I don't understand why.

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


More information about the wp-trac mailing list