1
0
Fork 0

Performance improvements to create-project

pull/1015/head
Jordi Boggiano 2012-08-24 11:38:42 +02:00
parent c14bc368b0
commit f9f86f03ae
1 changed files with 5 additions and 0 deletions

View File

@ -142,6 +142,7 @@ EOT
$package = $candidate; $package = $candidate;
} }
} }
unset($candidates);
$io->write('<info>Installing ' . $package->getName() . ' (' . VersionParser::formatVersion($package, false) . ')</info>', true); $io->write('<info>Installing ' . $package->getName() . ' (' . VersionParser::formatVersion($package, false) . ')</info>', true);
@ -164,6 +165,10 @@ EOT
putenv('COMPOSER_ROOT_VERSION='.$package->getPrettyVersion()); putenv('COMPOSER_ROOT_VERSION='.$package->getPrettyVersion());
// clean up memory
unset($dm, $config, $projectInstaller, $sourceRepo, $package);
// install dependencies of the created project
$composer = Factory::create($io); $composer = Factory::create($io);
$installer = Installer::create($io, $composer); $installer = Installer::create($io, $composer);