]> khamidou — GitHub mirrors - arcanist.git/commit
Parallelize calls for ArcanistGitAPI::getWorkingCopyStatus
authorYiding Jia <yidingjia@fb.com>
Tue, 5 Jul 2011 18:06:46 +0000 (11:06 -0700)
committerYiding Jia <yidingjia@fb.com>
Wed, 6 Jul 2011 17:34:51 +0000 (10:34 -0700)
commit88c4e69802b26780007ecaf8fc3045c342660114
tree73420dbb1f28b84d7965a496ee29793676214578
parent2aa853f85c44479bfe944e17da04d9c42efbadfc
Parallelize calls for ArcanistGitAPI::getWorkingCopyStatus

Summary:
executes the calls to git in parallel to improve startup performance of
arc lint and possibly other commands

Gets about a 2~3x speedup when repo is in buffer cache, with 4 cores.

Test Plan:
arc linted a repo with unstaged, untracked, staged, and committed
changes, see that the same files were linted.

Reviewed By: jungejason
Reviewers: jungejason, epriestley
Commenters: epriestley
CC: aran, jungejason, epriestley
Differential Revision: 594
src/repository/api/git/ArcanistGitAPI.php
src/repository/api/git/__init__.php