threads / discuss / 21064

Distribution size

Subject: Distribution size

## tl;dr

9 messages between Sep 26, 2009 and Sep 29, 2009.

replies: 8people: 6as markdown or json

Marc Weber· Sep 26, 2009, 11:11 UTC · lore
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· Sep 26, 2009, 11:22 UTC · re: Marc Weber · lore

Re: Distribution size

Hi,
On Sat, 26 Sep 2009, Marc Weber wrote:
Show 6 quoted lines
> 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/
Thomas Singer· Sep 26, 2009, 15:17 UTC · re: Johannes Schindelin · lore

Re: Distribution size

> 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:
Show 26 quoted lines
> 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· Sep 26, 2009, 16:00 UTC · re: Thomas Singer · lore

Re: Distribution size

Hi,
On Sat, 26 Sep 2009, Thomas Singer wrote:
Show 7 quoted lines
> > 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· Sep 28, 2009, 12:48 UTC · re: Thomas Singer · lore

Re: Distribution size

Thomas Singer said the following on 26.09.2009 17:17:
Show 12 quoted lines
>> 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· Sep 29, 2009, 09:06 UTC · re: Marius Storm-Olsen · lore

Re: Distribution size

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:
Show 25 quoted lines
> 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· Sep 29, 2009, 10:47 UTC · re: Thomas Singer · lore

Re: Distribution size

Hi,
On Tue, 29 Sep 2009, Thomas Singer wrote:
Show 5 quoted lines
> > 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

Jakub Narebski· Sep 26, 2009, 11:27 UTC · re: Marc Weber · lore

Re: Distribution size

Marc Weber <marco-oweber@gmx.de> writes:
Show 6 quoted lines
> 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
Show 14 quoted lines
> 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· Sep 26, 2009, 11:53 UTC · re: Marc Weber · lore

Re: Distribution size

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

← back to recent threads