Size of Git clone

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Size of Git clone

Björn Winckler
Hi,

I have noticed that the Git clone of Vim's Mercurial repository that I
set up is substantially larger than the original (original's .hg
folder ~ 45M, cloning Git repo with hg results in ~ 158M .hg folder,
cloning Git repo with git results in ~ 108M .git folder).

This post is partly to let people know that I am aware of the
situation and also to ask if anybody else on this list has any
experience using hg-git, or who can explain this discrepancy in sizes?
 (I've asked on the hg-git Google group as well and I'll report back
here if I get any response from them.)


Björn

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: Size of Git clone

Fredrik Gustafsson
Hi,

On Wed, May 26, 2010 at 10:41:22PM +0200, björn wrote:
> I have noticed that the Git clone of Vim's Mercurial repository that I
> set up is substantially larger than the original (original's .hg
> folder ~ 45M, cloning Git repo with hg results in ~ 158M .hg folder,
> cloning Git repo with git results in ~ 108M .git folder).
I checked out both the git and hg repos and confirmed your statement:

[iveqy@paksenarrion]-[~/slask/vimtest] du -sh *
142M    git
89M     hg

To let git optimize the git-repo and throw away unwanted stuff I runned
git gc --aggressive and the result was pleasing:

[iveqy@paksenarrion]-[~/slask/vimtest] du -sh *
72M     git
89M     hg

Regards
iveqy

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: Size of Git clone

Björn Winckler
On 26 May 2010 23:08, Fredrik Gustafsson wrote:

>
> On Wed, May 26, 2010 at 10:41:22PM +0200, björn wrote:
>> I have noticed that the Git clone of Vim's Mercurial repository that I
>> set up is substantially larger than the original (original's .hg
>> folder ~ 45M, cloning Git repo with hg results in ~ 158M .hg folder,
>> cloning Git repo with git results in ~ 108M .git folder).
> I checked out both the git and hg repos and confirmed your statement:
>
> [iveqy@paksenarrion]-[~/slask/vimtest] du -sh *
> 142M    git
> 89M     hg
>
> To let git optimize the git-repo and throw away unwanted stuff I runned
> git gc --aggressive and the result was pleasing:
>
> [iveqy@paksenarrion]-[~/slask/vimtest] du -sh *
> 72M     git
> 89M     hg

Nice!  I did not know about the "--aggressive" switch (I tried "git
gc" but it made no difference).  Now I get a 28M .git folder.

The clone using hg is still insane though...has hg got some way to
aggressively "clean" the .hg folder?

Björn

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: Size of Git clone

Fredrik Gustafsson
On Wed, May 26, 2010 at 11:32:40PM +0200, björn wrote:
> The clone using hg is still insane though...has hg got some way to
> aggressively "clean" the .hg folder?

I don't know mercurial well enough to answear that. I do know from
various benchmarks I've read that git (compared to hg) has a smaller
repository size and runs faster. The size diff I've is big but not that
huge anymore.

--
iveqy

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php