[wp-trac] [WordPress Trac] #64538: memoize wp_normalize_path
WordPress Trac
noreply at wordpress.org
Fri Jan 23 22:42:50 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 dmsnell):
Thanks for testing that out @josephscott — it’s really interesting that
the call to `stream_get_wrappers()` //wasn’t// the bottleneck, if I
understand your results correctly.
Do you think this implies the cost is in the `preg_replace()` inside of
`wp_normalize_path()`? I guess we //are// discussing a fairly trivial
aspect of performance, even though it’s at startup.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64538#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list