Follow-up Comment #1, sr #110553 (project administration): For some numbers, not in a VM, but on a laptop, the clone takes about 5 minutes, but the fetch shallow fetch takes about 1 minute.
On the qemu VM (with 2G of memory) its 42 minutes(!!) for the clone and 20 seconds total for the shallow fetch. The VM was on a different network with a lot more bandwidth so receiving the objects was much faster than the laptop, but the resolving deltas phase was much longer. It seems like the resolving deltas duration increases non-linearly with the number of deltas. # time git -C gnulib fetch --depth=2 origin d271f868a8d f9bbec29049d01e056481b7a1a263 remote: Enumerating objects: 9705, done. remote: Counting objects: 100% (9705/9705), done. remote: Compressing objects: 100% (8661/8661), done. remote: Total 9705 (delta 5116), reused 1992 (delta 1021), pack-reused 0 Receiving objects: 100% (9705/9705), 8.21 MiB | 1.19 MiB/s, done. Resolving deltas: 100% (5116/5116), done. >From https://github.com/coreutils/gnulib * branch d271f868a8df9bbec29049d01e056481b7a1a263 -> FETCH_HEAD real 0m13.167s user 0m8.278s sys 0m2.569s # time git -C gnulib reset --hard FETCH_HEAD Updating files: 100% (9636/9636), done. HEAD is now at d271f86 lock: Fix link error with --enable-threads=pth. real 0m7.529s user 0m2.353s sys 0m4.876s ========================================================= # time git clone git://git.sv.gnu.org/gnulib gnulib-official.git Cloning into 'gnulib-official.git'... remote: Counting objects: 244240, done. remote: Compressing objects: 100% (29927/29927), done. remote: Total 244240 (delta 214262), reused 244208 (delta 214241) Receiving objects: 100% (244240/244240), 51.13 MiB | 1.50 MiB/s, done. Resolving deltas: 100% (214262/214262), done. Updating files: 100% (10502/10502), done. real 42m23.480s user 41m20.532s sys 0m25.876s _______________________________________________________ Reply to this item at: <https://savannah.nongnu.org/support/?110553> _______________________________________________ Message sent via Savannah https://savannah.nongnu.org/