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

Re: [PATCH 0/5] Using index-pack in place of verify-pack

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 28, 2011, 17:25 UTC
Message-ID
<20110228172455.GA17278@spearce.org>
In-Reply-To
<20110228165827.GB24915@sigill.intra.peff.net>
Jeff King <peff@peff.net> wrote:
Show 13 quoted lines
>   $ cd linux-2.6
> 
>   $ time git verify-pack \
>       .git/objects/pack/pack-36c50f6082df404c26a699f2702946e0cce6208f.idx
>   real    2m37.338s
>   user    2m35.874s
>   sys     0m1.348s
> 
>   $ time git index-pack --verify \
>       .git/objects/pack/pack-36c50f6082df404c26a699f2702946e0cce6208f.pack
>   real    1m37.208s
>   user    1m36.106s
>   sys     0m1.048s

Not the improvement I had hoped. Your verify-pack ran much more quickly than the fsck I was seeing that led me to suggest this to Junio a few weeks ago. But saving a minute is still pretty good.

That index-pack run is basically what we get during clone, so I don't really expect to improve on that. (However I have been contemplating that the locality within the pack isn't optimal and we can do better placement.)

-- 
Shawn.
Previous: Sverre RabbelierNext: Junio C Hamano
Message 14 of 15 in “Using index-pack in place of verify-pack”
  1. 0/5 Using index-pack in place of verify-packJunio C Hamano, Feb 28, 2011
  2. 1/5 index-pack: group the delta-base array entries also by typeJunio C Hamano, Feb 28, 2011
  3. 2/5 write_idx_file: introduce a struct to hold idx customization optionsJunio C Hamano, Feb 28, 2011
  4. 3/5 index-pack: --verifyJunio C Hamano, Feb 28, 2011
  5. Shawn O. PearceFeb 28, 2011
  6. Junio C HamanoFeb 28, 2011
  7. 4/5 write_idx_file: need_large_offset() helper functionJunio C Hamano, Feb 28, 2011
  8. 5/5 index-pack --verify: read anomalous offsets from v2 idx fileJunio C Hamano, Feb 28, 2011
  9. Sverre RabbelierFeb 28, 2011
  10. Junio C HamanoFeb 28, 2011
  11. Sverre RabbelierFeb 28, 2011
  12. Jeff KingFeb 28, 2011
  13. Sverre RabbelierFeb 28, 2011
  14. Shawn O. PearceFeb 28, 2011
  15. Junio C HamanoFeb 28, 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.