Thread (6 messages) flat view 6 messages, 2 authors, 2016-06-15

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

From: Nicolas Pitre <hidden>
Date: 2016-06-15 22:43:21

On Thu, 12 Jul 2007, Brian Downing wrote:
On Thu, Jul 12, 2007 at 12:27:02PM -0400, Nicolas Pitre wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help