[wp-trac] [WordPress Trac] #18404: Reorganize rewrite_rules into a tree of strings and patterns

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 14 23:19:37 UTC 2011


#18404: Reorganize rewrite_rules into a tree of strings and patterns
---------------------------+-----------------------------
 Reporter:  andy           |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Rewrite Rules  |    Version:  3.2.1
 Severity:  normal         |   Keywords:
---------------------------+-----------------------------
 At WordCamp San Francisco 2011 (WCSF2011) we discussed optimizing
 wp::parse_request by converting the flat array of rewrite_rules into a
 tree by inspecting common prefixes. The proof-of-concept code performed on
 average about 1ms faster per parse_request. Core team decided to shelve
 the idea as the added complexity is hard to justify with a 1-2% speed
 improvement.

 The attached patch is a snapshot of the code as it stood on my
 wordpress.com sandbox during speed testing. The script treetest.php was
 run from wpsh.

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


More information about the wp-trac mailing list