git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Distribution size

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 26, 2009, 11:27 UTC
Message-ID
<m37hvmaqud.fsf@localhost.localdomain>
In-Reply-To
<1253962653-sup-1882@nixos>
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
Previous: Johannes SchindelinNext: Tay Ray Chuan
Message 8 of 9 in “Distribution size”
  1. Marc WeberSep 26, 2009
  2. Johannes SchindelinSep 26, 2009
  3. Thomas SingerSep 26, 2009
  4. Johannes SchindelinSep 26, 2009
  5. Marius Storm-OlsenSep 28, 2009
  6. Thomas SingerSep 29, 2009
  7. Johannes SchindelinSep 29, 2009
  8. Jakub NarebskiSep 26, 2009
  9. Tay Ray ChuanSep 26, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.