Closed sidz closed 11 months ago
Not a big win but this is a micro optimization will reduce amount of array_merge calls in case exclude-path or exclude-file options has more than one entry as Finder is doing array merge all the time notPath, notName, name are called.
exclude-path
exclude-file
notPath
notName
name
see https://github.com/symfony/finder/blob/4.4/Finder.php#L286
Hey @sasezaki, @exussum12, @kubawerlos could you please take a look at these changes when you have a chance?
thanks @kubawerlos, @sasezaki
Not a big win but this is a micro optimization will reduce amount of array_merge calls in case
exclude-path
orexclude-file
options has more than one entry as Finder is doing array merge all the timenotPath
,notName
,name
are called.see https://github.com/symfony/finder/blob/4.4/Finder.php#L286