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

Re: [PATCH] fast-import: Increase the default pack depth to 50

From
Jeff King <peff@peff.net>
Date
Jun 8, 2017, 07:21 UTC
Message-ID
<20170608072153.3fchkvjmudlhhstr@sigill.intra.peff.net>
In-Reply-To
<20170608071152.bnjr5zopbb3aly62@glandium.org>
On Thu, Jun 08, 2017 at 04:11:52PM +0900, Mike Hommey wrote:
Show 13 quoted lines
> > It probably doesn't matter that much, though, as you'd really want to
> > `repack -f` afterwards if you care about getting good deltas. And one
> > base object every 50 versions is probably fine for keeping the initial
> > pack manageable.
> 
> It actually is possible to have non-linear delta chains with
> fast-import, because the cat-blob command resets the delta base when
> storing a blob. See
> https://github.com/git/git/blob/v2.13.1/fast-import.c#L2984-L2987
> 
> As a side effect of that, git-cinnabar[1] ends up with decent-ish delta
> chains out of the box, without having to go with repack -f, when the
> mercurial server gives out changegroup version 2.
Interesting. Today I learned.
I agree that bumping the "10" to "50" is doubly important then.
-Peff
Previous: Mike Hommey
Message 4 of 4 in “fast-import: Increase the default pack depth to 50”
  1. fast-import: Increase the default pack depth to 50Mike Hommey, Jun 8, 2017
  2. Jeff KingJun 8, 2017
  3. Mike HommeyJun 8, 2017
  4. Jeff KingJun 8, 2017

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.