From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: git repository over http? Date: Sun, 21 Aug 2011 10:31:42 +0200 Message-ID: <87bovj88sx.fsf@Rainer.invalid> References: <1E33C447-B199-4358-8A0F-D3159680085D@agfa.com> <878vqsh3ug.fsf@gnu.org> <87obzmn0l8.fsf@gnu.org> <87r54hvb0c.fsf@riotblast.dunsmor.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qv3Rs-0000iE-7Z for emacs-orgmode@gnu.org; Sun, 21 Aug 2011 04:32:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qv3Rq-0004Pj-Ha for emacs-orgmode@gnu.org; Sun, 21 Aug 2011 04:32:03 -0400 Received: from lo.gmane.org ([80.91.229.12]:37420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qv3Rq-0004Pb-8J for emacs-orgmode@gnu.org; Sun, 21 Aug 2011 04:32:02 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qv3Rl-0001bL-Fy for emacs-orgmode@gnu.org; Sun, 21 Aug 2011 10:31:57 +0200 Received: from p57aad6b4.dip.t-dialin.net ([87.170.214.180]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Aug 2011 10:31:57 +0200 Received: from Stromeko by p57aad6b4.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Aug 2011 10:31:57 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Jason Dunsmore writes: > If you clone via git://, it does some optimizations during the transfer, > whereas cloning via http:// does not. If I do a "git gc" on the repo, > it reduces the size of the repo on the server and the time to download > via http:// I'd suggest that the repo on the server should get a regular garbage collect (daily, perhaps via cron) and on each release an aggressive garbage collect. It will be much easier on the server (reduced traffic and fewer requests to serve). Not only is the size of the repo much larger than it needs to be, the server also has to deal with lots of small requests that can't be efficiently transferred. Cloning the repo via http protocol produces 190MByte on disk, a simple and fast 'git gc' gets that down to 63MByte, just like cloning via git protocol (ironically, the server will do that work on each clone as long as you do not do a garbage collect on the repo itself). An aggressive garbage collect takes a while longer, but reduces the size of the repo down to 44MByte. An http clone on repo.or.cz currently delivers 72MByte, so it appears they do a regular garbage collect (or it simply comes courtesy of mirroring). Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds