From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: git repository over http?
Date: Sun, 21 Aug 2011 10:31:42 +0200 [thread overview]
Message-ID: <87bovj88sx.fsf@Rainer.invalid> (raw)
In-Reply-To: 87r54hvb0c.fsf@riotblast.dunsmor.com
Jason Dunsmore <emacs-orgmode@dunsmor.com> 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
prev parent reply other threads:[~2011-08-21 8:32 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
2011-08-23 16:28 ` Bastien
2011-08-21 8:31 ` Achim Gratz [this message]
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=87bovj88sx.fsf@Rainer.invalid \
--to=stromeko@nexgo.de \
--cc=emacs-orgmode@gnu.org \
/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).