From 7148519bbca2f537225913805541dd961893c2d2 Mon Sep 17 00:00:00 2001 From: vrana Date: Thu, 31 May 2012 15:11:22 -0700 Subject: [PATCH] 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 --- src/lint/linter/xhpast/ArcanistXHPASTLinter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.43.0