From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Dunsmore Subject: Re: git repository over http? Date: Tue, 23 Aug 2011 09:43:00 -0500 Message-ID: <87y5ykur2j.fsf@riotblast.dunsmor.com> References: <1E33C447-B199-4358-8A0F-D3159680085D@agfa.com> <878vqsh3ug.fsf@gnu.org> <87obzmn0l8.fsf@gnu.org> <87r54hvb0c.fsf@riotblast.dunsmor.com> <877h69jzbm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvsC4-0004Uf-H7 for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 10:43:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvsBz-0000En-Bl for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 10:43:08 -0400 Received: from deathroller.dunsmor.com ([98.129.169.48]:35806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvsBz-0000EY-7A for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 10:43:03 -0400 In-Reply-To: <877h69jzbm.fsf@gnu.org> (Bastien's message of "Fri, 19 Aug 2011 15:38:53 +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: Bastien Cc: emacs-orgmode@gnu.org, Jonathan Leech-Pepin Bastien writes: > Hi Jason, > > Jason Dunsmore writes: > >> I ran some tests and found that the download speed is proportional to >> the size of the repo: > > Good to know, thanks. > >> 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:// > > Okay -- can you "git gc" on the server? Okay, done: --8<---------------cut here---------------start------------->8--- orgmode@org:~$ du -sh org-mode.git 225M org-mode.git orgmode@org:~/org-mode.git$ find objects/|wc -l 6523 orgmode@org:~/org-mode.git$ git gc Counting objects: 52023, done. Delta compression using up to 4 threads. Compressing objects: 100% (14474/14474), done. Writing objects: 100% (52023/52023), done. Total 52023 (delta 41421), reused 46864 (delta 37483) Removing duplicate objects: 100% (256/256), done. orgmode@org:~/org-mode.git$ du -sh 56M . orgmode@org:~/org-mode.git$ find objects/|wc -l 66 --8<---------------cut here---------------end--------------->8--- I lowered the git auto-gc threshold from the default of 6700 (loose objects) to 1000. orgmode@org:~/org-mode.git$ git config gc.auto 1000 Regards, Jason