Hi Ori,

I'm at the office now, but (heh) that may be a tougher test than my
home connection.  More below....

On Tue, Mar 12, 2013 at 12:00 AM, Ori Livneh <o...@wikimedia.org> wrote:
> Rob, thanks for checking. I tried it yesterday and again just now, and in 
> both cases it took around 15 minutes:
>
> vagrant@precise32:~$ time git clone --depth 1 
> https://gerrit.wikimedia.org/r/p/mediawiki/core.git
> Cloning into 'core'...
> remote: Counting objects: 46297, done
> remote: Finding sources: 100% (46297/46297)
> remote: Getting sizes: 100% (25843/25843)
> remote: Compressing objects:  76% (19864/25833)
> remote: Total 46297 (delta 33063), reused 26399 (delta 20010)
> Receiving objects: 100% (46297/46297), 102.66 MiB | 194 KiB/s, done.
> Resolving deltas: 100% (37898/37898), done.
>
> real 15m14.500s
> user 0m27.562s
> sys 0m13.421s
>
> The output of 'git config --list' is blank; this is vanilla git. 'Compressing 
> objects' took the longest.
>
> For comparison:
>
> vagrant@precise32:~$ time wget -q 
> https://github.com/wikimedia/mediawiki-core/archive/master.zip && unzip -x -q 
> master.zip
>
> real 1m15.592s
> user 0m0.184s
> sys 0m3.480s

I'm on Ubuntu 12.10 (Quantal), so that might have something to do with it.
$ git --version
git version 1.7.10.4

$ time git clone --depth 1
https://gerrit.wikimedia.org/r/p/mediawiki/core.git core-shallow
Cloning into 'core-shallow'...
remote: Counting objects: 3456, done
remote: Finding sources: 100% (3456/3456)
remote: Getting sizes: 100% (3074/3074)
remote: Compressing objects:  63% (1958/3069)
remote: Total 3456 (delta 690), reused 1496 (delta 379)
Receiving objects: 100% (3456/3456), 18.71 MiB | 1.49 MiB/s, done.
Resolving deltas: 100% (816/816), done.

real 0m34.507s
user 0m4.252s
sys 0m0.940s


I wasn't able to find anything in the Git release notes to indicate
anything different on the client side, though I didn't look too hard.
However, it appears as though JGit server-side support for shallow
clones is relatively recent:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=394543

...characterized here as "coming along bit by bit":
http://dev.eclipse.org/mhonarc/lists/jgit-dev/msg01976.html

...which would imply that maybe the JGit server side stuff hasn't been
tested with a lot of client versions.

Rob

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to