emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jason Dunsmore <emacs-orgmode@dunsmor.com>
To: Bastien <bzg@altern.org>,
	Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: git repository over http?
Date: Fri, 19 Aug 2011 07:30:59 -0500	[thread overview]
Message-ID: <87r54hvb0c.fsf@riotblast.dunsmor.com> (raw)
In-Reply-To: <87obzmn0l8.fsf@gnu.org> (Bastien's message of "Thu, 18 Aug 2011 18:30:59 +0200")

Bastien <bzg@altern.org> writes:

> Hi Jonathan,
>
> Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com> writes:
>
>> The server does seem to support HTTP for pulling, however it is very
>> slow. 
>
> Yes, I noticed this too.
>
>> http:// does work for cloning and pulling from the main Repo, however
>> there's nothing to indicate that anything is happening until the task
>> is complete.
>
> Yes.
>
> Jason, is the slowliness something worth trying to fix?   
> Can we get some indication that the repo is currently being
> cloned?

I ran some tests and found that the download speed is proportional to
the size of the repo:

--8<---------------cut here---------------start------------->8---
$ time /usr/bin/git clone http://orgmode.org/org-mode.git
Cloning into org-mode...

real    15m23.475s
user    0m30.434s
sys     0m7.588s

$ time /usr/bin/git clone git://orgmode.org/org-mode.git org-mode2
Cloning into org-mode2...
remote: Counting objects: 51864, done.
remote: Compressing objects: 100% (14898/14898), done.
remote: Total 51864 (delta 41315), reused 46129 (delta 36900)
Receiving objects: 100% (51864/51864), 53.00 MiB | 205 KiB/s, done.
Resolving deltas: 100% (41315/41315), done.

real    5m19.350s
user    0m19.341s
sys     0m2.576s

$ time /usr/bin/git clone http://repo.or.cz/r/org-mode.git org-mode3
Cloning into org-mode3...

real    7m15.211s
user    0m21.293s
sys     0m3.652s

$ du -sh org-mode*
201M    org-mode
63M     org-mode2
70M     org-mode3
--8<---------------cut here---------------end--------------->8---

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://

--8<---------------cut here---------------start------------->8---
$ cp -r /home/orgmode/org-mode.git/ /var/www/orgmode.org/org-mode-copy.git
$ cd /var/www/orgmode.org/org-mode-copy.git
$ du -sh
221M    .
$ git gc
$ du -sh
65M     .

$ time /usr/bin/git clone http://orgmode.org/org-mode-copy.git
Cloning into org-mode-copy...

real    5m6.472s
user    0m18.797s
sys     0m2.300s

$ du -sh org-mode-copy
63M     org-mode-copy
--8<---------------cut here---------------end--------------->8---

I'd recommend using the repo.or.cz repo for http:// downloads.
repo.or.cz probably runs git-http-backend or does a "git gc"
occasionally.

Any user feedback for "git clone" would be up to the git client.  It
used to say "got... walk..." prior to 1.7.  Not sure why they removed
those messages in 1.7.

Regards,
Jason

  reply	other threads:[~2011-08-19 12:31 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 [this message]
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

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=87r54hvb0c.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).