androidgitdownloadcyanogenmodrepo

downloading Cyanogenmod source tree takes months


I am downloading the cyanogen source code for two days now.

I am using Ubuntu 14.04 (VBox Windows 8) to clone the Cyanogenmod 12.0 repo.

repo init -u https://github.com/CyanogenMod/android.git -b cm-12.0

repo sync -c -j 4

Any tips how to speed it up?


Solution

  • In the comments above, the OP revealed that -j 4 causes repo to use four simultaneous threads, but that the OP's VM only had two cores.

    Running more threads than you have cores often hurts performance, and increasing the number of virtual cores, as well as switching to -j 2, seems to have dramatically sped the process up.