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

Re: Horrible re-packing?

From
Linus Torvalds <torvalds@osdl.org>
Date
Jun 5, 2006, 21:40 UTC
Message-ID
<Pine.LNX.4.64.0606051432270.5498@g5.osdl.org>
In-Reply-To
<Pine.LNX.4.64.0606051637490.24152@localhost.localdomain>
On Mon, 5 Jun 2006, Nicolas Pitre wrote:
> 
> In other words, the pack shrunk to less than half the size of the 
> previous one !
Ok, that's a bit more extreme than expected.

It's obviously great news, and says that the approach of sorting by "reversed name" is a great heuristic, but at the same time it makes me worry a bit that this thing that is supposed to be a heuristic ends up being _so_ important from a pack size standpoint. I was happier when it was more about saving a couple of percent.

Now, your repo may be a strange case, and it just happens to fit the suggested hash, but on the other hand it's nice to see three totally different repositories that all improve, albeit with wildly different numbers.

I'm wondering if we could have some "incremental optimizer" thing that would take a potentially badly packed archive, and just start looking for better delta chain possibilities? That way we would still try to get a good initial pack with some heuristic, but we could have people run the incremental improver every once in a while looking for good deltas that it missed due to the project not fitting the heuristics..

The fact that we normally do incremental repacking (and "-f" is unusual) is obviously one thing that makes us less susceptible to bad patterns (and is also what allows us to run the incremental optimizer - any good delta choice will automatically percolate into subsequent versions, including packs that have been cloned).

So the packing strategy itself seems to be very stable (and partly _due_ to the "optimization" to re-use earlier pack choices), but we currently lack the thing that fixes up any initial bad assumptions in case they happen.

			Linus
Previous: Nicolas PitreNext: Nicolas Pitre
Message 14 of 15 in “Horrible re-packing?”
  1. Linus TorvaldsJun 5, 2006
  2. Linus TorvaldsJun 5, 2006
  3. Linus TorvaldsJun 5, 2006
  4. Junio C HamanoJun 5, 2006
  5. Linus TorvaldsJun 5, 2006
  6. Junio C HamanoJun 5, 2006
  7. Junio C HamanoJun 6, 2006
  8. Olivier GalibertJun 5, 2006
  9. Nicolas PitreJun 5, 2006
  10. Chris WedgwoodJun 6, 2006
  11. Linus TorvaldsJun 6, 2006
  12. Linus TorvaldsJun 5, 2006
  13. Nicolas PitreJun 5, 2006
  14. Linus TorvaldsJun 5, 2006
  15. Nicolas PitreJun 5, 2006

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.