From: Nicolas Pitre <nico@cam.org>
To: Brian Downing <bdowning@lavos.net>
Cc: Junio C Hamano <junkio@cox.net>, git@vger.kernel.org
Subject: Re: [PATCH] apply delta depth bias to already deltified objects
Date: Thu, 12 Jul 2007 14:07:27 -0400 (EDT) [thread overview]
Message-ID: <alpine.LFD.0.999.0707121404090.32552@xanadu.home> (raw)
In-Reply-To: <20070712164458.GC19073@lavos.net>
On Thu, 12 Jul 2007, Brian Downing wrote:
> 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
next prev parent reply other threads:[~2007-07-12 18:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-12 6:38 [PATCH] apply delta depth bias to already deltified objects Nicolas Pitre
2007-07-12 15:20 ` Brian Downing
2007-07-12 16:27 ` Nicolas Pitre
2007-07-12 16:44 ` Brian Downing
2007-07-12 18:07 ` Nicolas Pitre [this message]
2007-07-12 18:33 ` Nicolas Pitre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.0.999.0707121404090.32552@xanadu.home \
--to=nico@cam.org \
--cc=bdowning@lavos.net \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).