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

Re: git repository size / compression

From
John Szakmeister <john@szakmeister.net>
Date
Sep 9, 2011, 16:05 UTC
Message-ID
<CAEBDL5U5-1nBGbWtb6+CfBrESoy8+p0Qqw1t1n_5EKFmpq9NhA@mail.gmail.com>
In-Reply-To
<1315556595.2019.11.camel@bee.lab.cmartin.tk>

On Fri, Sep 9, 2011 at 4:23 AM, Carlos Martín Nieto <cmn@elego.de> wrote: [snip]

Show 14 quoted lines
>> Subversion repo/server:
>> {{{
>> $ du -h -d 1
>>  12K    ./conf
>> 1.2M    ./db
>>  36K    ./hooks
>> 8.0K    ./locks
>> 1.2M    .
>> }}}
>
> I don't know how the repository is stored in Subversion, but it may also
> be compressed. You may be able to reduced your git repository size by
> (re)generating packs with 'git repack' and doing some cleanups with 'git
> gc', but the repository size is not often a concern.

It is stored compressed in Subversion, and it also generates deltas against previous versions. IIRC, the delta algorithm in an xdelta based one, and then the data is run through compression. Subversion will at times choose to self-compress the file, instead of doing a delta and compressing. IIRC, there is some heuristics in there for determining when to do that, but I forget the exact method.

HTH!
-John
Previous: neubyrNext: Andreas Krey
Message 9 of 10 in “git repository size / compression”
  1. neubyrSep 9, 2011
  2. Carlos Martín NietoSep 9, 2011
  3. neubyrSep 9, 2011
  4. Sverre RabbelierSep 9, 2011
  5. Carlos Martín NietoSep 9, 2011
  6. neubyrSep 9, 2011
  7. Jakub NarebskiSep 9, 2011
  8. neubyrSep 9, 2011
  9. John SzakmeisterSep 9, 2011
  10. Andreas KreySep 9, 2011

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.