[Issue] Greatly improve performance by caching subsequent glob calls #34025
Labels
Area: Framework
Component: Filesystem
Fixed in 2.4.x
The issue has been fixed in 2.4-develop branch
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Priority: P1
Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.
Progress: done
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Severity: S1
Affects critical data or functionality and forces users to employ a workaround.
Projects
This issue is automatically created based on existing pull request: #33998: Greatly improve performance by caching subsequent glob calls
Description (*)
This pull request introduces an in-memory cache for glob system calls. On systems where file I/O is slow (for example Docker for Mac), glob system calls can be quite slow. This pull requests caches the same glob calls and returns a cached result if possible. In my testing this reduced the glob calls on the category listings from ~8K to ~1.6K.
Blackfire comparison:
Related Pull Requests
None
Fixed Issues (if relevant)
None
Manual testing scenarios (*)
glob()
callsQuestions or comments
Contribution checklist (*)
Resolved issues:
The text was updated successfully, but these errors were encountered: