Skip to contentSkip to conversation

Distribution size

DISCUSSION Marc Weber 6 participants 9 messages Jun 15, 2016

lore
Share & tools
lore

Marc Weber

author
#0 lore raw

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

#1 lore raw

Hi,

Quoted 6 lines · Marc Weber

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/

#2 lore raw
Quoted 1 line

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

Quoted 26 lines · Johannes Schindelin

Hi,

Quoted 6 lines · Marc Weber

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Thomas Singer said the following on 26.09.2009 17:17:

Quoted 8 lines
Quoted 1 line

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.

Quoted 4 lines

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

#4 lore raw

Hi Marius,

Quoted 1 line

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

Quoted 25 lines · Marius Storm-Olsen

Thomas Singer said the following on 26.09.2009 17:17:

Quoted 8 lines
Quoted 1 line

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.

Quoted 4 lines

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.

Signature · 1 line
.marius
#5 lore raw

Hi,

Quoted 5 lines · Thomas Singer
Quoted 2 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

#6 lore raw
In reply to Thomas Singer

Hi,

Quoted 7 lines · Thomas Singer
Quoted 1 line

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.

Quoted 3 lines

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

#8 lore raw
In reply to Marc Weber
Quoted 6 lines · Marc Weber

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
Quoted 6 lines

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

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

Quoted 8 lines

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?

Signature · 3 lines
Jakub Narebski
Poland
ShadeHawk on #git