]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Run xhpast in parallel
authorvrana <jakubv@fb.com>
Thu, 31 May 2012 22:11:22 +0000 (15:11 -0700)
committervrana <jakubv@fb.com>
Thu, 31 May 2012 22:19:35 +0000 (15:19 -0700)
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

index bac63e5533b07ace0dc4663407fee1fec1102665..6d211a72a81560561953dd15111ef6acc439deb7 100644 (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(