[wp-trac] [WordPress Trac] #19175: Improve get_page_by_path() performance

WordPress Trac wp-trac at lists.automattic.com
Sun Nov 6 13:05:25 UTC 2011


#19175: Improve get_page_by_path() performance
-------------------------+----------------------------
 Reporter:  duck_        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Future Release
Component:  Performance  |    Version:  3.3
 Severity:  normal       |   Keywords:  has-patch
-------------------------+----------------------------
 Follow up for #17670 where a few performance improvements were suggested.

 I found an improvement of about 50% in some simplistic tests (loop over
 the function 10,000 times) by removing the $post_type parameter from the
 get_page() call. This was added in [13774]. The issue is that this is
 passing the post type to the filter argument which means that get_post()
 runs the relatively expensive sanitize_post().

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


More information about the wp-trac mailing list