1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-12-23 22:10:54 +01:00

Run xhpast in parallel

Summary: I wonder if this is not by purpose?

Test Plan: Modified two files, ran `arc lint`.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin

Differential Revision: https://secure.phabricator.com/D2629
This commit is contained in:
vrana 2012-05-31 15:11:22 -07:00
parent 9cd098ca01
commit 7148519bbc

View file

@ -137,7 +137,7 @@ final class ArcanistXHPASTLinter extends ArcanistLinter {
foreach ($paths as $path) {
$futures[$path] = xhpast_get_parser_future($this->getData($path));
}
foreach ($futures as $path => $future) {
foreach (Futures($futures)->limit(8) as $path => $future) {
$this->willLintPath($path);
try {
$this->trees[$path] = XHPASTTree::newFromDataAndResolvedExecFuture(