Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Finder] Add early directory prunning filter support#50877
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
0117bc0 to2cb6ad5Compare2cb6ad5 toc47a9b8Compare74945e2 tob5dd592Compare
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Can you expand a bit on the PR description to say what pruning is about in the context of the Finder component? It would help ppl get what this is about more quickly I think.
src/Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
2cdcbf7 to4864beaCompare4864bea to6cdfe93CompareUh oh!
There was an error while loading.Please reload this page.
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM, please just use a regular@param annotation for the added argument.
45d034d tobaca842Comparefabpot commentedOct 11, 2023
@mvorisek Can you rebase to resolve the conflicts? |
baca842 to840cb28Comparenicolas-grekas commentedOct 11, 2023
Thank you@mvorisek. |
…er support (mvorisek)This PR was merged into the 6.4 branch.Discussion----------[Finder] [Finder docs] Add early directory prunning filter supportRefs*symfony/symfony#50877Commits-------4b08ee6 [Finder docs] Add early directory prunning filter support
Uh oh!
There was an error while loading.Please reload this page.
Filtering terminology first:
Currently there is early directory prunning support possible, but with string patterns only, not even full regex is supported as the input is always quoted -https://github.com/symfony/symfony/blob/v6.2.12/src/Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php#L45.
This PR adds early directory prunning with full callback support.
Tested with VFS to assert the pruned directories are really not traversed and the count of IO syscalls is minimal.