在cm的wiki里面有相关介绍网络
The CM manifests include a sensible default configuration for
repo
, which we strongly suggest you use (i.e., don't add any options tosync
). For reference, our current default values are-j4
, and-c
. The “-j4
” part means that there will be four simultaneous threads/connections. If you experience problems syncing, you can lower this to-j3
or-j2
. “-c
” will ask repo to pull in only the current branch, instead of the entire CM history.this
做为一个英文水货。简单理解翻译一下。有错误的请指出。有补充的请评论。spa
对于repo来讲CM版本列表有一个合理的默认结构,这就是为何咱们强烈推荐你使用它(这就是说,请不要添加任何参数在sync上)。做为参考,咱们当前的默认值为-j4和-c。这个-j4意思是将会同时使用4个线程。若是你在同步的过程当中发现问题,你可使用更低的值-j3或者-j2。“-c”这个参数将会反馈给repo,让他只同步如今指定的版本分支,而不是同步全部的CM版本分支。线程
经过对这段话的理解能够知道,CM团队推荐咱们使用repo sync默认的设置。也就是-j4 -c,可是若是是这样的话。俺以为4个线程不能发挥俺8m的网络优点。并且cm也只是怕有在同步过程当中有错误发生,因此说我以为这个参数仍是能够添加修改的。好比俺直接使用了repo sync -j100没错是100.。而后发现确实挺给力的说。。具体有快多少。因为没有对比着看,因此也不知道。翻译
可是若是在同步完了代码以后,要使用repo sync来检查一下有没有同步错误。看看代码是否完整,这样的话就能发挥优点的同时也保证了代码的完整性。code