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

Re: [PATCH 08/13] prevent try_delta from using objects not in pack

From
DHDana How <danahow@gmail.com>
Date
Apr 6, 2007, 02:28 UTC
Message-ID
<56b7f5510704051928l5d1f5a02yccc8e57c222e5f64@mail.gmail.com>
In-Reply-To
<alpine.LFD.0.98.0704052100420.28181@xanadu.home>
On 4/5/07, Nicolas Pitre <nico@cam.org> wrote:
> What is the purpose of this patch?
>
> The try_delta() function is called with all objects before any object is
> written to a pack to find out how to deltify objects upfront.

I set no_write for 2 different reasons in the patchset. (1) When the blob is too big (--blob-limit) and will never be written. (2) When the blob has been written to a previous, finished pack.

You're correct that this patch will never see condition (2).

I think my repository statistics are a little unusual. Perhaps I'm getting ahead of myself here, but I also wanted to experiment with writing all blobs to one set of packs, and all trees, commits, and tags to another set (but probably just one small pack). I would use no_write for that and it would matter here. But I haven't run any experiments yet so I don't know if it makes any difference. I have seen related discussions on the mailing list so I know this isn't a new idea.

-- 
Dana L. How  danahow@gmail.com  +1 650 804 5991 cell
Previous: Nicolas PitreNext: Nicolas Pitre
Message 4 of 8 in “prevent try_delta from using objects not in pack”
  1. 08/13 prevent try_delta from using objects not in packDana How, Apr 5, 2007
  2. Junio C HamanoApr 5, 2007
  3. Nicolas PitreApr 6, 2007
  4. Dana HowApr 6, 2007
  5. Nicolas PitreApr 6, 2007
  6. Dana HowApr 6, 2007
  7. Nicolas PitreApr 6, 2007
  8. Dana HowApr 6, 2007

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.