Re: [PATCH 0/4] Speed up git tag --contains
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jul 6, 2011, 06:56 UTC
- Message-ID
- <20110706065623.GB14164@elie>
- In-Reply-To
- <20110706064012.GA927@sigill.intra.peff.net>
Jeff King wrote:
Show 5 quoted lines
> The problem is that existing objects don't have this generation number. > It's easy to calculate, though, and we could in theory use a notes-cache > to store it externally. Obviously the complexity and performance aren't > going to be as good as if it were just in the commit object, but we're > sadly 6 years too late to make that decision.
I am still digesting the rest of what you wrote, but wouldn't this be easy to do today? One could just use a notes-cache while prototyping and if it seems to work well, introduce new loose and packed object formats that include a field for the cached generation number.