Skip to content

Commit

Permalink
Increase processor consumption
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Mar 6, 2020
1 parent dc74f2b commit 7f9e6b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Psalm/Internal/Codebase/Methods.php
Expand Up @@ -127,6 +127,10 @@ public function methodExists(
}

if ($source && $fq_class_name !== strtolower((string) $source->getFQCLN())) {
if ($fq_class_name === 'vimeo\cli\command\consumecommand') {
var_dump($source->getFilePath(), $source->getFQCLN());
}

$this->file_reference_provider->addFileReferenceToClass(
$source->getFilePath(),
$fq_class_name
Expand Down
2 changes: 1 addition & 1 deletion src/psalm.php
Expand Up @@ -327,7 +327,7 @@ function ($arg) {
} elseif (isset($options['debug']) || $in_ci) {
$threads = 1;
} else {
$threads = max(1, ProjectAnalyzer::getCpuCount() - 2);
$threads = max(1, ProjectAnalyzer::getCpuCount() - 1);
}

if (!isset($options['threads'])
Expand Down

0 comments on commit 7f9e6b8

Please sign in to comment.