[wp-trac] [WordPress Trac] #56745: Performance/Bug: calling array_map repeatedly inside WP_Theme_JSON::get_default_slugs is a bottleneck for page-loads.
WordPress Trac
noreply at wordpress.org
Thu Oct 6 10:17:45 UTC 2022
#56745: Performance/Bug: calling array_map repeatedly inside
WP_Theme_JSON::get_default_slugs is a bottleneck for page-loads.
--------------------------+--------------------
Reporter: aristath | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.1
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: performance |
--------------------------+--------------------
Issue discovered when running profiling using Xdebug & webgrind. Replacing
the `array_map` call with a simple `foreach` loop improves the page-load
speed significantly.
More info in the PR below.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56745>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list