Closed
Description
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
- Fixes magento/magento2#<issue_number>
Manual testing scenarios (*)
- Profile any page before this diff is applied
- Apply diff and reprofile
- See a reduction in
glob()
calls
Questions or comments
Contribution checklist (*)
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- All new or changed code is covered with unit/integration tests (if applicable)
- README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
- All automated tests passed successfully (all builds are green)
Resolved issues:
- resolves [Issue] Greatly improve performance by caching subsequent glob calls #34024: Greatly improve performance by caching subsequent glob calls
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedOnce P0 defects have been fixed, a defect having this priority is the next candidate for fixing.The issue has been reproduced on latest 2.4-develop branchAffects critical data or functionality and forces users to employ a workaround.