emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] git repository over http?


From: Jason Dunsmore
Subject: Re: [O] git repository over http?
Date: Tue, 23 Aug 2011 09:43:00 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Bastien <address@hidden> writes:

> Hi Jason,
>
> Jason Dunsmore <address@hidden> 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---
address@hidden:~$ du -sh org-mode.git
225M    org-mode.git

address@hidden:~/org-mode.git$ find objects/|wc -l
6523

address@hidden:~/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.

address@hidden:~/org-mode.git$ du -sh
56M     .

address@hidden:~/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.


address@hidden:~/org-mode.git$ git config gc.auto 1000


Regards,
Jason



reply via email to

[Prev in Thread] Current Thread [Next in Thread]