Re: Cloning speed comparison
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Aug 13, 2005, 02:12 UTC
- Message-ID
- <Pine.LNX.4.58.0508121908180.3295@g5.osdl.org>
- In-Reply-To
- <20050813015402.GC20812@pasky.ji.cz>
On Sat, 13 Aug 2005, Petr Baudis wrote:
> > Anyway, clone-pack is a clear winner for networks (but someone should > re-check that, especially compared to rsync, wrt. server-side file > caching); really cool fast, but not very practical for anonymous access.
git-daemon is for the anonymous access case, either started from inetd (or any other external "listen to port, exec service" thing), or with the built-in listening stuff.
It uses exactly the same protocol and logic as the regular ssh clone-pack thing, except it doesn't authenticate the remote end: it only checks that the local end is accepting anonymous pulls by checking whether there is a "git-daemon-export-ok" file in the git directory.
In my tests, the git daemon was noticeably faster than ssh, if only because the authentication actually tends to be a big part of the overhead in small pulls.
[ Hey. There's a deer outside my window eating our roses again. Cute ]
Linus