[wp-trac] [WordPress Trac] #6677: JS is horribly inefficient on Write -> Post/Link pages when lots of categories

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 11 05:56:12 GMT 2008


#6677: JS is horribly inefficient on Write -> Post/Link pages when lots of
categories
----------------------+-----------------------------------------------------
 Reporter:  mdawaffe  |       Owner:  mdawaffe               
     Type:  defect    |      Status:  new                    
 Priority:  normal    |   Milestone:  2.5.1                  
Component:  General   |     Version:  2.5                    
 Severity:  normal    |    Keywords:  has-patch needs-testing
----------------------+-----------------------------------------------------
 There are probably lots of inefficiencies.  This patch addresses two.

  1. Whenever a checkbox in "All Categories" is checked/unchecked, it syncs
 that new checked state with it's partner in "Most Used" and vice versa.
  2. On load (and maybe unload in some browsers during some kind of
 cleanup), wp-lists looks at each category checkbox and makes huge arrays.
 This is so that the current checked state of all category checkboxes is
 known (needed for ajax addition of categories).

 The attached fixes:
  1. By only syncing the categories that are in both lists.  To do this,
 various wp-admin/include/template functions have been tweaked so that they
 can be aware of what categories are popular.
  2. By vastly reducing the number of inputs wp-lists looks at on load and
 making slight efficiency tweaks to wp-lists.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6677>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list