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

RE: Why does send-pack call pack-objects for all remote refs?

From
DKDaniel Koverman <dkoverman@predictivetechnologies.com>
Date
Dec 14, 2015, 13:47 UTC
Message-ID
<d0a39b03e49d41e685cf61398c0d1102@EXCHANGE2U.uunet.arlington.PredictiveTechnologies.com>
In-Reply-To
<20151210041941.GA4056@sigill.intra.peff.net>
> You might also try repacking with "git repack -adb", which will
> build reachability bitmaps. Pack-objects can use them to compute
> the set of required objects much faster.

Running "git repack -adb" caused my push time to incease by about 5x. I made some fresh clones and tried other options with repack, and consistently anything I tried with -b caused the push time to increase about 5x.

I don't know much about reachability bitmaps, but perhaps it is important to note that I timed the pushes after repacking on Git for Windows. My earlier timings were done on both Linux and Windows and I did not see a significant difference.

Show 6 quoted lines
> It's definitely a lot, but it's not unheard of. The git project has
> over 500 tags. That's not 2000, but you're within an order of
> magnitude.
>
> I have seen repositories with 20,000+ tags. I consider that a bit
> more ridiculous, but it does work in practice.

Thanks for the extra context. I'll keep that in mind while I decide how to approach this.

Daniel
Previous: Nasser GrainawiNext: Jeff King
Message 7 of 10 in “Why does send-pack call pack-objects for all remote refs?”
  1. Daniel KovermanDec 7, 2015
  2. Junio C HamanoDec 7, 2015
  3. Jeff KingDec 7, 2015
  4. Daniel KovermanDec 8, 2015
  5. Jeff KingDec 10, 2015
  6. Nasser GrainawiDec 12, 2015
  7. Daniel KovermanDec 14, 2015
  8. Jeff KingDec 14, 2015
  9. Jonathan NiederDec 14, 2015
  10. Jeff KingDec 14, 2015

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.