Opened 13 years ago
Closed 13 years ago
#19175 closed defect (bug) (fixed)
Improve get_page_by_path() performance
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.3 | Priority: | normal |
Severity: | normal | Version: | 3.3 |
Component: | Performance | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
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().
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Per IRC. This is just a copy-paste error. Parameter never should have been passed.