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

WordPress Trac noreply at wordpress.org
Tue Jun 6 08:22:33 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 aristath):

 Replying to [comment:18 samiamnot]:
 > Regardless of the actual number of calls the count of calls to
 `_wp_array_get` seems excessive. Is there a way to reduce it?

 Yes, there are ways to reduce the number of calls to that function. I
 currently have a PR in Gutenberg to do just that - see
 https://github.com/WordPress/gutenberg/pull/51116 for more info.
 It's still awaiting a review, but I'm hoping we can get this merged soon.

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


More information about the wp-trac mailing list