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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-bcd
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux