From: vrana Date: Thu, 31 May 2012 22:11:22 +0000 (-0700) Subject: Run xhpast in parallel X-Git-Tag: conduit-6~282 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=7148519bbca2f537225913805541dd961893c2d2;p=arcanist.git 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 --- diff --git a/src/lint/linter/xhpast/ArcanistXHPASTLinter.php b/src/lint/linter/xhpast/ArcanistXHPASTLinter.php index bac63e55..6d211a72 100644 --- a/src/lint/linter/xhpast/ArcanistXHPASTLinter.php +++ b/src/lint/linter/xhpast/ArcanistXHPASTLinter.php @@ -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(