emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jason Dunsmore <emacs-orgmode@dunsmor.com>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org,
	Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com>
Subject: Re: git repository over http?
Date: Tue, 23 Aug 2011 09:43:00 -0500	[thread overview]
Message-ID: <87y5ykur2j.fsf@riotblast.dunsmor.com> (raw)
In-Reply-To: <877h69jzbm.fsf@gnu.org> (Bastien's message of "Fri, 19 Aug 2011 15:38:53 +0200")

Bastien <bzg@altern.org> writes:

> Hi Jason,
>
> Jason Dunsmore <emacs-orgmode@dunsmor.com> 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

  reply	other threads:[~2011-08-23 14:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-17  7:43 git repository over http? peter.frings
2011-08-17  7:52 ` Bastien
2011-08-18 14:47   ` Jonathan Leech-Pepin
2011-08-18 16:30     ` Bastien
2011-08-19 12:30       ` Jason Dunsmore
2011-08-19 13:38         ` Bastien
2011-08-23 14:43           ` Jason Dunsmore [this message]
2011-08-23 16:28             ` Bastien
2011-08-21  8:31         ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y5ykur2j.fsf@riotblast.dunsmor.com \
    --to=emacs-orgmode@dunsmor.com \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=jonathan.leechpepin@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).