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

Re: Ideas to speed up repacking

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 3, 2013, 17:50 UTC
Message-ID
<xmqqhaapq0xc.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CACsJy8CBOp_5nwm=WWBG_AZ+h6M7L6WpdX4ACeJxwuJ0kqu0Gw@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
> Reading Martin's mail again I wonder how we just
> "grab all objects and skip history traversal". Who will decide object
> order in the new pack if we don't traverse history and collect path
> information.

I vaguely recall raising a related topic for "quick repack, assuming everything in existing packfiles are reachable, that only removes loose cruft" several weeks ago. Once you decide that your quick repack do not care about ejecting objects from existing packs, like how I suspect Martin's outline will lead us to, we can repack the reachable loose ones on the recent surface of the history and then concatenate the contents of existing packs, excluding duplicates and possibly adjusting the delta base offsets for some entries, without traversing the bulk of the history.

Previous: Duy NguyenNext: Martin Fick
Message 6 of 7 in “Ideas to speed up repacking”
  1. Martin FickDec 2, 2013
  2. Junio C HamanoDec 3, 2013
  3. Duy NguyenDec 3, 2013
  4. Junio C HamanoDec 3, 2013
  5. Duy NguyenDec 3, 2013
  6. Junio C HamanoDec 3, 2013
  7. Martin FickDec 3, 2013

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.