-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add option for using reference clones
Use $GIT_REF_PATH, if it is set, to look for reference clones when doing repo checkouts. Reference clones are much faster. In a new, empty build tree, doing a full clone in my test took over an hour of real time (1:03:14.36). Switching to using --reference, referring to an existing build tree's _BE directory, took under 3-and-a-half minutes (3:28.50) in one test, and about 5 minutes in another. That is, about 12 to 18 times faster. (Details will depend on your network speed.) User and system CPU time also dropped dramatically: user=448.977 sys=536.946 seconds (no reference) user=132.858 sys= 20.595 seconds (first ref test) user=173.599 sys=25.108 (second, 5 minute, clone). To use this effectively we will need to provide a location for base reference clones. They should probably be updated frequently, e.g., via cron jobs; a stale reference still works but becomes less effective.
- Loading branch information
Chris Torek
committed
Mar 25, 2016
1 parent
51fba42
commit d6813ce
Showing
1 changed file
with
68 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters