[wp-trac] [WordPress Trac] #10852: improve get_page_children
WordPress Trac
wp-trac at lists.automattic.com
Sat Nov 14 06:50:27 UTC 2009
#10852: improve get_page_children
--------------------------+-------------------------------------------------
Reporter: hailin | Owner: westi
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 2.9
Component: Optimization | Version: 2.9
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Changes (by miqrogroove):
* cc: miqrogroove@… (added)
Comment:
If you want this to be optimized for large dependency trees, you should
use the function pattern: assign, test, recurse. You can unset() the top
node in get_page_children(). As you have it - test, assign, recurse -
there is an extra recursion call for every leaf page.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10852#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list