git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Distribution size
@ 2009-09-26 11:11 Marc Weber
  2009-09-26 11:22 ` Johannes Schindelin
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Marc Weber @ 2009-09-26 11:11 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Distribution size
  2009-09-26 11:11 Distribution size Marc Weber
@ 2009-09-26 11:22 ` Johannes Schindelin
  2009-09-26 15:17   ` Thomas Singer
  2009-09-26 11:27 ` Jakub Narebski
  2009-09-26 11:53 ` Tay Ray Chuan
  2 siblings, 1 reply; 9+ messages in thread
From: Johannes Schindelin @ 2009-09-26 11:22 UTC (permalink / raw)
  To: Marc Weber; +Cc: git

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/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Distribution size
  2009-09-26 11:11 Distribution size Marc Weber
  2009-09-26 11:22 ` Johannes Schindelin
@ 2009-09-26 11:27 ` Jakub Narebski
  2009-09-26 11:53 ` Tay Ray Chuan
  2 siblings, 0 replies; 9+ messages in thread
From: Jakub Narebski @ 2009-09-26 11:27 UTC (permalink / raw)
  To: Marc Weber; +Cc: git

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Distribution size
  2009-09-26 11:11 Distribution size Marc Weber
  2009-09-26 11:22 ` Johannes Schindelin
  2009-09-26 11:27 ` Jakub Narebski
@ 2009-09-26 11:53 ` Tay Ray Chuan
  2 siblings, 0 replies; 9+ messages in thread
From: Tay Ray Chuan @ 2009-09-26 11:53 UTC (permalink / raw)
  To: Marc Weber; +Cc: git

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Distribution size
  2009-09-26 11:22 ` Johannes Schindelin
@ 2009-09-26 15:17   ` Thomas Singer
  2009-09-26 16:00     ` Johannes Schindelin
  2009-09-28 12:48     ` Marius Storm-Olsen
  0 siblings, 2 replies; 9+ messages in thread
From: Thomas Singer @ 2009-09-26 15:17 UTC (permalink / raw)
  To: git; +Cc: Johannes Schindelin, Marc Weber

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Distribution size
  2009-09-26 15:17   ` Thomas Singer
@ 2009-09-26 16:00     ` Johannes Schindelin
  2009-09-28 12:48     ` Marius Storm-Olsen
  1 sibling, 0 replies; 9+ messages in thread
From: Johannes Schindelin @ 2009-09-26 16:00 UTC (permalink / raw)
  To: Thomas Singer; +Cc: git, Marc Weber

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Distribution size
  2009-09-26 15:17   ` Thomas Singer
  2009-09-26 16:00     ` Johannes Schindelin
@ 2009-09-28 12:48     ` Marius Storm-Olsen
  2009-09-29  9:06       ` Thomas Singer
  1 sibling, 1 reply; 9+ messages in thread
From: Marius Storm-Olsen @ 2009-09-28 12:48 UTC (permalink / raw)
  To: Thomas Singer; +Cc: git, Johannes Schindelin, Marc Weber

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Distribution size
  2009-09-28 12:48     ` Marius Storm-Olsen
@ 2009-09-29  9:06       ` Thomas Singer
  2009-09-29 10:47         ` Johannes Schindelin
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Singer @ 2009-09-29  9:06 UTC (permalink / raw)
  To: Marius Storm-Olsen; +Cc: git, Johannes Schindelin, Marc Weber

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Distribution size
  2009-09-29  9:06       ` Thomas Singer
@ 2009-09-29 10:47         ` Johannes Schindelin
  0 siblings, 0 replies; 9+ messages in thread
From: Johannes Schindelin @ 2009-09-29 10:47 UTC (permalink / raw)
  To: Thomas Singer; +Cc: Marius Storm-Olsen, git, Marc Weber

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-09-29 10:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-26 11:11 Distribution size Marc Weber
2009-09-26 11:22 ` Johannes Schindelin
2009-09-26 15:17   ` Thomas Singer
2009-09-26 16:00     ` Johannes Schindelin
2009-09-28 12:48     ` Marius Storm-Olsen
2009-09-29  9:06       ` Thomas Singer
2009-09-29 10:47         ` Johannes Schindelin
2009-09-26 11:27 ` Jakub Narebski
2009-09-26 11:53 ` Tay Ray Chuan

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 NNTP newsgroup(s).