[wp-trac] [WordPress Trac] #64538: memoize wp_normalize_path

WordPress Trac noreply at wordpress.org
Sat Jan 24 00:22:57 UTC 2026


#64538: memoize wp_normalize_path
--------------------------------------+---------------------
 Reporter:  josephscott               |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  7.0
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by josephscott):

 My current theory is that `preg_replace()` is responsible for the bulk of
 the work.  I haven't bothered to narrow it down though, since the simple
 inline segmented caching seems to provide a nice win.

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


More information about the wp-trac mailing list