[wp-trac] [WordPress Trac] #10852: improve get_page_children

WordPress Trac noreply at wordpress.org
Tue May 5 19:37:00 UTC 2015


#10852: improve get_page_children
-------------------------------+---------------------------
 Reporter:  hailin             |       Owner:  boonebgorges
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  4.3
Component:  Posts, Post Types  |     Version:  2.9
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:  performance
-------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"32355"]:
 {{{
 #!CommitTicketReference repository="" revision="32355"
 Improve performance of `get_page_children()`.

 The new algorithm uses a hash table rather than function recursion,
 reducing
 complexity to O(N). On large numbers of pages, the performance improvement
 is
 several orders of magnitude.

 Props santagada, hailin, mihai.
 Fixes #10852.
 }}}

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


More information about the wp-trac mailing list