[wp-trac] [WordPress Trac] #64538: memoize wp_normalize_path
WordPress Trac
noreply at wordpress.org
Wed Jan 21 22:47:53 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:
--------------------------------------+---------------------
Changes (by josephscott):
* focuses: performance =>
Comment:
This is a classic "use more memory to reduce I/O and CPU" trade off. At
the ~4,000 calls to `wp_normalize_path()` I was seeing about 240KB
additional memory usage. This is of course going to vary depending on
exactly what paths you end up normalizing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64538#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list