Re: [PATCH 2/2] index-pack: prefetch missing REF_DELTA bases
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- May 17, 2019, 07:20 UTC
- Message-ID
- <CACsJy8CNyug3wvZ+6ts1nzgWyPF1JqC0LceP-HzMHjqvCr2Ugw@mail.gmail.com>
- In-Reply-To
- <20190517043939.GA12063@sigill.intra.peff.net>
On Fri, May 17, 2019 at 12:35 PM Jeff King <peff@peff.net> wrote:
Show 8 quoted lines
> As it turns out, index-pack does not handle these complicated cases at > all! In the final fix_unresolved_deltas(), we are only looking for thin > deltas, and anything that was not yet resolved is assumed to be a thin > object. In many of these cases we _could_ resolve them if we tried > harder. But that is good news for us because it means that these > expectations about delta relationships are already there, and the > pre-fetch done by your patch should always be 100% correct and > efficient.
Is it worth keeping some of these notes in the "third pass" comment block in index-pack.c to help future readers?
-- Duy