[wp-trac] Re: [WordPress Trac] #5458: making get_pages and wp_list_pages faster

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 14 01:13:22 GMT 2007


#5458: making get_pages and wp_list_pages faster
---------------------+------------------------------------------------------
 Reporter:  hailin   |        Owner:  hailin  
     Type:  defect   |       Status:  assigned
 Priority:  normal   |    Milestone:  2.5     
Component:  General  |      Version:          
 Severity:  normal   |   Resolution:          
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by hailin):

 Per Ryan's request, I've rewrote the Walk class which is a core class used
 in wp_list_pages, etc to generate nested pages.

 The resulting implemenation is much faster, with O(N) time complexity.
 and the code is more simple, thus easier to understand and maintain.

 Tested on my local wporg and wpcom sandbox.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5458#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list