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

Re: pack v4 trees with a canonical base

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 10, 2013, 20:13 UTC
Message-ID
<xmqqbo40xwnv.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CACsJy8C+SFBRD1czeeK5VBDYT4xA6K+61HgLRnjB+CYJ-2g+uA@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
Show 10 quoted lines
> On Tue, Sep 10, 2013 at 2:25 AM, Nicolas Pitre <nico@fluxnic.net> wrote:
>> An eventual optimization to index-pack when completing a pack would be
>> to attempt the encoding of appended tree objects into the packv4 format
>> using the existing dictionary table in the pack, and fall back to the
>> canonical format if that table doesn't have all the necessary elements.
>
> Yeah, it's on the improvement todo list. The way pack-objects creates
> dictionaries right now, the tree dict should contain all elements the
> base trees need so fall back is only necessary when trees are have
> extra zeros in mode field.
Careful.

There may be trees in the wild that record 100775 or 100777 in the mode field for executable blobs, which also need to be special cased.

Previous: Duy NguyenNext: Nicolas Pitre
Message 3 of 6 in “pack v4 trees with a canonical base”
  1. Nicolas PitreSep 9, 2013
  2. Duy NguyenSep 10, 2013
  3. Junio C HamanoSep 10, 2013
  4. Nicolas PitreSep 10, 2013
  5. Junio C HamanoSep 10, 2013
  6. Nicolas PitreSep 10, 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.