Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Config] Improve performance of GlobResource #49676

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Mar 13, 2023

Q A
Branch? 6.3
Bug fix? no
New feature? no
Deprecations? no
Tickets Fix #49668
License MIT
Doc PR -

When using an extended glob pattern that contains /**/, we skip using the native glob() function and we fallback to using the Finder component.

For a pattern like ./{apps,src}/**/*Controller.php, the way finder works in GlobResource is that we list all files recursively in the directory before the pattern starts (./ here) and we filter the paths using a regexp.

This PR ensures that we scan only the apps and src directories when presented with such a pattern.

@nicolas-grekas nicolas-grekas merged commit da8e8d0 into symfony:6.3 Mar 16, 2023
@nicolas-grekas nicolas-grekas deleted the config-glob-fast branch March 19, 2023 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RouterListener loops through all files in project
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.