[wp-trac] [WordPress Trac] #58376: Improve performance of the `_wp_array_get` function

WordPress Trac noreply at wordpress.org
Wed May 24 13:20:22 UTC 2023


#58376: Improve performance of the `_wp_array_get` function
-------------------------+-----------------------------
 Reporter:  aristath     |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  closed
 Priority:  high         |   Milestone:  6.3
Component:  General      |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:  performance
-------------------------+-----------------------------

Comment (by costdev):

 **Same results for Twenty Fifteen and Twenty Seventeen**

 Total calls to `_wp_array_get()`: 4418

 Top 5:
 - 928 calls - `WP_Theme_JSON::merge()`
 - 736 calls - `::wp_migrate_old_typography_shape()`
 - 703 calls - `::block_has_support()`
 - 588 calls - `::wp_register_typography_support()`
 - 390 calls - `::wp_register_colors_support()`
 - These top 5 account for 3345 calls, or ~75%.

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


More information about the wp-trac mailing list