Updated Rector to commit ed11caa6ada99a91a251b94c28b89856f20588af

ed11caa6ad Performance: Memoize sipped file paths (#3495)
This commit is contained in:
Tomas Votruba 2023-03-20 15:16:46 +00:00
parent b17ced80d5
commit 765799a37b
5 changed files with 20 additions and 13 deletions

View File

@ -8,6 +8,10 @@ use Rector\Skipper\Matcher\FileInfoMatcher;
use Rector\Skipper\SkipCriteriaResolver\SkippedPathsResolver;
final class PathSkipVoter implements SkipVoterInterface
{
/**
* @var array<string, bool>
*/
private $skippedFiles = [];
/**
* @readonly
* @var \Rector\Skipper\Matcher\FileInfoMatcher
@ -35,7 +39,10 @@ final class PathSkipVoter implements SkipVoterInterface
*/
public function shouldSkip($element, string $filePath) : bool
{
if (isset($this->skippedFiles[$filePath])) {
return $this->skippedFiles[$filePath];
}
$skippedPaths = $this->skippedPathsResolver->resolve();
return $this->fileInfoMatcher->doesFileInfoMatchPatterns($filePath, $skippedPaths);
return $this->skippedFiles[$filePath] = $this->fileInfoMatcher->doesFileInfoMatchPatterns($filePath, $skippedPaths);
}
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'ea0c6c15d9a937b1aebd4991815c7a0bab7f30c0';
public const PACKAGE_VERSION = 'ed11caa6ada99a91a251b94c28b89856f20588af';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-03-20 18:25:00';
public const RELEASE_DATE = '2023-03-20 22:09:52';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitb72065d4cc1300ced72cf3a803bbfa95::getLoader();
return ComposerAutoloaderInitd5f6f4132835b1038bbe84e916d86caf::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitb72065d4cc1300ced72cf3a803bbfa95
class ComposerAutoloaderInitd5f6f4132835b1038bbe84e916d86caf
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInitb72065d4cc1300ced72cf3a803bbfa95
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitb72065d4cc1300ced72cf3a803bbfa95', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitd5f6f4132835b1038bbe84e916d86caf', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitb72065d4cc1300ced72cf3a803bbfa95', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitd5f6f4132835b1038bbe84e916d86caf', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitb72065d4cc1300ced72cf3a803bbfa95::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitd5f6f4132835b1038bbe84e916d86caf::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInitb72065d4cc1300ced72cf3a803bbfa95::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInitd5f6f4132835b1038bbe84e916d86caf::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInitb72065d4cc1300ced72cf3a803bbfa95
class ComposerStaticInitd5f6f4132835b1038bbe84e916d86caf
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3127,9 +3127,9 @@ class ComposerStaticInitb72065d4cc1300ced72cf3a803bbfa95
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitb72065d4cc1300ced72cf3a803bbfa95::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitb72065d4cc1300ced72cf3a803bbfa95::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitb72065d4cc1300ced72cf3a803bbfa95::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitd5f6f4132835b1038bbe84e916d86caf::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitd5f6f4132835b1038bbe84e916d86caf::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitd5f6f4132835b1038bbe84e916d86caf::$classMap;
}, null, ClassLoader::class);
}