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

Re: [PATCH] apply delta depth bias to already deltified objects

From
Nicolas Pitre <nico@cam.org>
Date
Jul 12, 2007, 18:07 UTC
Message-ID
<alpine.LFD.0.999.0707121404090.32552@xanadu.home>
In-Reply-To
<20070712164458.GC19073@lavos.net>
On Thu, 12 Jul 2007, Brian Downing wrote:
Show 12 quoted lines
> On Thu, Jul 12, 2007 at 12:27:02PM -0400, Nicolas Pitre wrote:
> > Better yet, the integer truncation error should be compensated for, with 
> > this:
> > 
> >     max_size =
> >         (trg_entry->delta_size * max_depth + max_depth - trg_entry->depth) /
> >                     (max_depth - trg_entry->depth + 1);
> 
> Yep, with this, my degenerate case seems to find the optimum solution
> (depth ~ 65) even at crazy maximum depths like 1000.
> 
> Looks good to me.
Great.

Now to conclude this, I have a patch with much simpler math which I'll post rsn.

Nicolas
Previous: Brian DowningNext: Nicolas Pitre
Message 5 of 6 in “apply delta depth bias to already deltified objects”
  1. apply delta depth bias to already deltified objectsNicolas Pitre, Jul 12, 2007
  2. Brian DowningJul 12, 2007
  3. Nicolas PitreJul 12, 2007
  4. Brian DowningJul 12, 2007
  5. Nicolas PitreJul 12, 2007
  6. apply delta depth bias to already deltified objectsNicolas Pitre, Jul 12, 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.