[wp-trac] [WordPress Trac] #56974: Improve performance of the WP_Theme_JSON class

WordPress Trac noreply at wordpress.org
Thu Nov 3 07:33:55 UTC 2022


#56974: Improve performance of the WP_Theme_JSON class
--------------------------+-----------------------------
 Reporter:  aristath      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+-----------------------------
 As pointed out in other tickets during the 6.1 release cycle, the
 `WP_Theme_JSON` is one of the biggest bottlenecks (if not the biggest)
 when loading a page using a block theme.
 Some of the methods inside `WP_Theme_JSON` call a lot of expensive array
 functions - and their effect is compounded by the fact that they usually
 run hundreds of times as part of deeply-nested loops.
 We can improve the performance of these methods by simplifying all these
 calls to faster, simpler, and usually more readable alternatives.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56974>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list