[wp-trac] [WordPress Trac] #32769: Customizer Menus: Setting sanitization innefficiencies resulting in severe performance slowdowns

WordPress Trac noreply at wordpress.org
Mon Jul 13 08:04:58 UTC 2015


#32769: Customizer Menus: Setting sanitization innefficiencies resulting in severe
performance slowdowns
-------------------------------------+--------------------------
 Reporter:  westonruter              |       Owner:  westonruter
     Type:  defect (bug)             |      Status:  accepted
 Priority:  high                     |   Milestone:  4.3
Component:  Customize                |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  performance
-------------------------------------+--------------------------
Changes (by westonruter):

 * keywords:  needs-patch => has-patch needs-testing


Comment:

 I have implemented the change to reduce the redundant calls to
 `wp_setup_nav_menu_item()`, and in doing so eliminating a large number of
 postmeta lookups, in all resulting in about a ~200% speed boost. See
 [attachment:32769.diff​].

 The more in depth solution, lazy loading the settings and controls when
 the sections are expanded, will drastically reduce the load time yet
 again.

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


More information about the wp-trac mailing list