[FE training-materials-updates] Instruct people to run 'repo sync -j2'

Michael Opdenacker michael.opdenacker at free-electrons.com
Fri Dec 14 10:44:32 CET 2012

Repository : git://git.free-electrons.com/training-materials.git

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=1bc3ab621dafa1e3d79889df5927246dca349a65


commit 1bc3ab621dafa1e3d79889df5927246dca349a65
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Fri Dec 14 10:42:04 2012 +0100

    Instruct people to run 'repo sync -j2'
    Better to advise people to use '-j2' right from the start.
    Otherwise, people have already started 'repo sync' when they
    read this advise.


 labs/android-source-code/android-source-code.tex |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/labs/android-source-code/android-source-code.tex b/labs/android-source-code/android-source-code.tex
index e53ff93..c64f1a0 100644
--- a/labs/android-source-code/android-source-code.tex
+++ b/labs/android-source-code/android-source-code.tex
@@ -47,7 +47,7 @@ mkdir android
 cd android
 repo init -u https://android.googlesource.com/platform/manifest \
      -b android-2.3.7_r1
-repo sync
+repo sync -j2
 \code{repo sync} will synchronize the files for all the source
@@ -56,12 +56,14 @@ the Internet, this could even take a few hours to
 complete. Fortunately, your instructor will take advantage of this
 waiting time to continue with the lectures.
-However, a lot of time is used to process the files downloaded by git,
-wasting a lot of bandwidth usage time. You can speed up the download
-using the \code{-jX} option for \code{repo sync}, \code{X} being the
-number of parallel downloads. We will use \code{2} because we all
-share the same internet connection, but you can definitely increase
-this number up to \code{8} at home.
+We are using the \code{-jX} option of \code{repo sync} to have \code{X}
+downloads in parallel. Otherwise, if the source repositories are fetched
+sequencially, a lot of time and available network bandwidth is wasted
+between downloads, processing the files downloaded by git.
+In our case, we are using \code{2} because we all share the same
+internet connection, but you can definitely increase this number up to
+\code{8} when you are alone.
 If this really takes too much time, your instructor may distribute a
 ready-made archive containing what \code{repo sync} would have

More information about the training-materials-updates mailing list