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

Re: performance issue: git clone compression

From
TWTim Webster <tdwebste@gmail.com>
Date
Nov 8, 2009, 02:45 UTC
Message-ID
<72877ab10911071845q1c60e2b0kfe6f0509b5728912@mail.gmail.com>
In-Reply-To
<alpine.LFD.2.00.0911072115270.16711@xanadu.home>

On servers with limit memory it is not piratical to run git gc. I can run git gc on a bare mirror and rsync back to the server.

I would prefer to for go compress packing entirely for the large git repositories containing media files.

Can I disable compression by file attribute via .gitattributes?

I am trying to use git for all repositories to avoid a mix of version control methods. For media repositories I am using

[core]
    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    compression = 0
    loosecompression = 0
[pack]
    # disable delta-based packing
    depth = 1
    # disable compression
    compression = 0

There is no problem with git pull and push Just git clone swaps the server to death

Show 6 quoted lines
> Make sure the remote repository is fully packed.  To do so, just go into
> the remote repository and run 'git gc'.
>
>
> Nicolas
>
Previous: Nicolas PitreNext: Nicolas Pitre
Message 3 of 4 in “performance issue: git clone compression”
  1. Tim WebsterNov 8, 2009
  2. Nicolas PitreNov 8, 2009
  3. Tim WebsterNov 8, 2009
  4. Nicolas PitreNov 8, 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.