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

Re: [PATCH] reduce git-pack-objects memory usage a little more

From
Brian Downing <bdowning@lavos.net>
Date
Jul 13, 2007, 01:42 UTC
Message-ID
<20070713014228.GE19073@lavos.net>
In-Reply-To
<alpine.LFD.0.999.0707121703240.32552@xanadu.home>
On Thu, Jul 12, 2007 at 05:07:59PM -0400, Nicolas Pitre wrote:
> The delta depth doesn't have to be stored in the global object array 
> structure since it is only used during the deltification pass.
This patch breaks pack-objects pretty horribly:
:; PATH=~/src/git:$PATH /usr/bin/time ~/src/git/git-repack -a -d -f

:; ls -l .git/objects/pack total 153916 -r--r--r-- 1 bdowning bdowning 1312136 2007-07-12 20:39 pack-9ac926ee1f5810c434707d3f816f5ad2cbd14668.idx -r--r--r-- 1 bdowning bdowning 156130933 2007-07-12 20:39 pack-9ac926ee1f5810c434707d3f816f5ad2cbd14668.pack

chain length = 1: 6182 objects chain length = 2: 66 objects chain length = 3: 27 objects chain length = 4: 20 objects chain length = 5: 15 objects chain length = 6: 9 objects chain length = 7: 5 objects chain length = 8: 5 objects chain length = 9: 6 objects chain length = 10: 4 objects chain length = 11: 6 objects chain length = 12: 4 objects chain length = 13: 3 objects chain length = 14: 3 objects chain length = 15: 2 objects chain length = 16: 2 objects chain length = 17: 1 object chain length = 18: 1 object chain length = 19: 1 object

Unfortunately I didn't notice until I tried v1.5.3-rc1...
-bcd
Previous: Nicolas PitreNext: Brian Downing
Message 2 of 5 in “reduce git-pack-objects memory usage a little more”
  1. reduce git-pack-objects memory usage a little moreNicolas Pitre, Jul 12, 2007
  2. Brian DowningJul 13, 2007
  3. Brian DowningJul 13, 2007
  4. forgot to clear the depth valueNicolas Pitre, Jul 13, 2007
  5. Junio C HamanoJul 13, 2007

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.