# Distribution size

9 messages from 2009-09-26 to 2009-09-29. Participants: Marc Weber, Johannes Schindelin, Jakub Narebski, Tay Ray Chuan, Thomas Singer, Marius Storm-Olsen.
Thread: https://gitlist.dev/t/21064

## Marc Weber, 2009-09-26 11:11

Subject: Distribution size
Message-ID: <1253962653-sup-1882@nixos>
URL: https://gitlist.dev/e/1253962653-sup-1882%40nixos

```
Hi,

Has anyone thought about reducing distribution size ?

comparison:

git-1.6.4.4 i%du -hs .
115M    .

mercurial-1.0.2 i%du -hs .
5.4M    .

bazaar-1.10rc1 i%du -hs
21M     .

darcs-2.2.1 i%du -hs    /nix/store/8xwfavyv22pvm3s60wvzcbq561fjk5di-darcs-2.2.1 nixos   
32M	.

There was an attempt to reduce size by using a shared library in 2007:
http://markmail.org/message/vzukaie4qvbghkq5

So is there a reason why git takes up so much more disk space other than
that its using many small executables?

Marc Weber

```

## Johannes Schindelin, 2009-09-26 11:22

Subject: Re: Distribution size
Message-ID: <alpine.DEB.1.00.0909261320370.4985@pacific.mpi-cbg.de>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0909261320370.4985%40pacific.mpi-cbg.de
In-Reply-To: <1253962653-sup-1882@nixos>

```
Hi,

On Sat, 26 Sep 2009, Marc Weber wrote:

> Has anyone thought about reducing distribution size ?
> 
> comparison:
> 
> git-1.6.4.4 i%du -hs .
> 115M    .

Funny.  Git for Windows is less than 12MB [*1*].  And it includes a bash 
and Perl.  (Did you count Python on Windows?)

So maybe your analysis is severely borked.

Ciao,
Dscho

[*1*]: See http://msysgit.googlecode.com/

```

## Jakub Narebski, 2009-09-26 11:27

Subject: Re: Distribution size
Message-ID: <m37hvmaqud.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m37hvmaqud.fsf%40localhost.localdomain
In-Reply-To: <1253962653-sup-1882@nixos>

```
Marc Weber <marco-oweber@gmx.de> writes:

> Has anyone thought about reducing distribution size ?
> 
> comparison:
> 
> git-1.6.4.4 i%du -hs .
> 115M    .

Errr... what?

  $ du -hs /usr/libexec/git-core/
  8.0M

  $ du -shc `rpm -ql git`
  ...
  27M
 
But

  $ du -sh git/.git
  49M

(there is some of my commits there, some old branches pinned, and some
commits with other git(web) forks).

And

  $ git archive HEAD --output=tmp.tar
  $ du -sh tmp.tar 
  11M     tmp.tar

> mercurial-1.0.2 i%du -hs .
> 5.4M    .
> 
> bazaar-1.10rc1 i%du -hs
> 21M     .
> 
> darcs-2.2.1 i%du -hs    /nix/store/8xwfavyv22pvm3s60wvzcbq561fjk5di-darcs-2.2.1 nixos   
> 32M	.
> 
> There was an attempt to reduce size by using a shared library in 2007:
> http://markmail.org/message/vzukaie4qvbghkq5
> 
> So is there a reason why git takes up so much more disk space other than
> that its using many small executables?

Are you sure you are comparing the same thing in all cases?
And not in some cases after "make", with all object files?

-- 
Jakub Narebski
Poland
ShadeHawk on #git

```

## Tay Ray Chuan, 2009-09-26 11:53

Subject: Re: Distribution size
Message-ID: <be6fef0d0909260453x374b5ed4h21ff79a107fde28a@mail.gmail.com>
URL: https://gitlist.dev/e/be6fef0d0909260453x374b5ed4h21ff79a107fde28a%40mail.gmail.com
In-Reply-To: <1253962653-sup-1882@nixos>

```
Hi,

On Sat, Sep 26, 2009 at 7:11 PM, Marc Weber <marco-oweber@gmx.de> wrote:
> git-1.6.4.4 i%du -hs .
> 115M    .

perhaps it's due to usage of hard links?

-- 
Cheers,
Ray Chuan

```

## Thomas Singer, 2009-09-26 15:17

Subject: Re: Distribution size
Message-ID: <4ABE3091.5040600@syntevo.com>
URL: https://gitlist.dev/e/4ABE3091.5040600%40syntevo.com
In-Reply-To: <alpine.DEB.1.00.0909261320370.4985@pacific.mpi-cbg.de>

```
> Funny.  Git for Windows is less than 12MB [*1*].

Well, the portable Git bundle compressed with 7zip is approx. 11MB, the Git
installer (maybe also using 7zip internally) is at approx. the same size.
Unpacked/installed on disk they are at 138MB/131MB. If you try to compress
it with zip, it will reduce to approx. 70MB which still is quite large.

We are interested, too, in having a small(er) bundle, because we want to
distribute Git binaries with our Git GUI front-end, SmartGit, so the user
will (have the option to) get an all-inclusive-bundle.

--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com


Johannes Schindelin wrote:
> Hi,
> 
> On Sat, 26 Sep 2009, Marc Weber wrote:
> 
>> Has anyone thought about reducing distribution size ?
>>
>> comparison:
>>
>> git-1.6.4.4 i%du -hs .
>> 115M    .
> 
> Funny.  Git for Windows is less than 12MB [*1*].  And it includes a bash 
> and Perl.  (Did you count Python on Windows?)
> 
> So maybe your analysis is severely borked.
> 
> Ciao,
> Dscho
> 
> [*1*]: See http://msysgit.googlecode.com/
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

```

## Johannes Schindelin, 2009-09-26 16:00

Subject: Re: Distribution size
Message-ID: <alpine.DEB.1.00.0909261759410.4985@pacific.mpi-cbg.de>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0909261759410.4985%40pacific.mpi-cbg.de
In-Reply-To: <4ABE3091.5040600@syntevo.com>

```
Hi,

On Sat, 26 Sep 2009, Thomas Singer wrote:

> > Funny.  Git for Windows is less than 12MB [*1*].
> 
> Well, the portable Git bundle compressed with 7zip is approx. 11MB, the 
> Git installer (maybe also using 7zip internally) is at approx. the same 
> size. Unpacked/installed on disk they are at 138MB/131MB. If you try to 
> compress it with zip, it will reduce to approx. 70MB which still is 
> quite large.

Of course, the Git installer does nothing like you claim.

> We are interested, too, in having a small(er) bundle, because we want to 
> distribute Git binaries with our Git GUI front-end, SmartGit, so the 
> user will (have the option to) get an all-inclusive-bundle.

If I see something in it for myself, I might want to help.

Ciao,
Dscho

```

## Marius Storm-Olsen, 2009-09-28 12:48

Subject: Re: Distribution size
Message-ID: <4AC0B088.9090101@gmail.com>
URL: https://gitlist.dev/e/4AC0B088.9090101%40gmail.com
In-Reply-To: <4ABE3091.5040600@syntevo.com>

```
Thomas Singer said the following on 26.09.2009 17:17:
>> Funny.  Git for Windows is less than 12MB [*1*].
> 
> Well, the portable Git bundle compressed with 7zip is approx. 11MB,
> the Git installer (maybe also using 7zip internally) is at approx.
> the same size. Unpacked/installed on disk they are at 138MB/131MB.
> If you try to compress it with zip, it will reduce to approx. 70MB
> which still is quite large.
> 
> We are interested, too, in having a small(er) bundle, because we
> want to distribute Git binaries with our Git GUI front-end,
> SmartGit, so the user will (have the option to) get an
> all-inclusive-bundle.

[Please, never ever top-post on the Git mailing list, thanks]

Most of the git-*.exe are identical duplicates, so most of that can be 
nuked. Also, you don't need everything in msysgit to distribute, only 
for development. You should be able to make a fairly small 
distribution for usage only.

--
.marius

```

## Thomas Singer, 2009-09-29 09:06

Subject: Re: Distribution size
Message-ID: <4AC1CE12.8040406@syntevo.com>
URL: https://gitlist.dev/e/4AC1CE12.8040406%40syntevo.com
In-Reply-To: <4AC0B088.9090101@gmail.com>

```
Hi Marius,

> Also, you don't need everything in msysgit to distribute, only for development.

How should I find out what is required to *run* all git commands, except of
trying it myself? Is there a document available somewhere?

--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com


Marius Storm-Olsen wrote:
> Thomas Singer said the following on 26.09.2009 17:17:
>>> Funny.  Git for Windows is less than 12MB [*1*].
>>
>> Well, the portable Git bundle compressed with 7zip is approx. 11MB,
>> the Git installer (maybe also using 7zip internally) is at approx.
>> the same size. Unpacked/installed on disk they are at 138MB/131MB.
>> If you try to compress it with zip, it will reduce to approx. 70MB
>> which still is quite large.
>>
>> We are interested, too, in having a small(er) bundle, because we
>> want to distribute Git binaries with our Git GUI front-end,
>> SmartGit, so the user will (have the option to) get an
>> all-inclusive-bundle.
> 
> [Please, never ever top-post on the Git mailing list, thanks]
> 
> Most of the git-*.exe are identical duplicates, so most of that can be
> nuked. Also, you don't need everything in msysgit to distribute, only
> for development. You should be able to make a fairly small distribution
> for usage only.
> 
> -- 
> .marius
> 
> 

```

## Johannes Schindelin, 2009-09-29 10:47

Subject: Re: Distribution size
Message-ID: <alpine.DEB.1.00.0909291247160.29499@intel-tinevez-2-302>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0909291247160.29499%40intel-tinevez-2-302
In-Reply-To: <4AC1CE12.8040406@syntevo.com>

```
Hi,

On Tue, 29 Sep 2009, Thomas Singer wrote:

> > Also, you don't need everything in msysgit to distribute, only for 
> > development.
>
> How should I find out what is required to *run* all git commands, except 
> of trying it myself? Is there a document available somewhere?

Thomas, are you seriously asking to work for you for free?  What's in it 
for us?

Ciao,
Dscho

```
