Re: [PATCH 2/5] add object-cache infrastructure
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Jul 12, 2011, 10:41 UTC
- Message-ID
- <201107121241.40242.jnareb@gmail.com>
- In-Reply-To
- <20110711161754.GB10418@sigill.intra.peff.net>
On Mon, 11 July 2011, Jeff King wrote:
Show 14 quoted lines
> There is sometimes a need to cache some information about an > object or set of objects persistently across git > invocations. The notes-cache interface can be used for this, > but it is very heavyweight and slow for storing small > values. > > This patch introduces a new API, object-cache, which stores > a mapping of objects to values in a concise and efficient > form. See the added API documentation for details. > > Signed-off-by: Jeff King <peff@peff.net> > --- > As I mentioned earlier, I wanted this to be generic and size-agnostic, > because I'd also like to try caching patch-ids for git-cherry.
Could this API be generalized to support "reverse cache", for example to map Subversion revision numbers to Git revision identifiers (for git-svn)?
-- Jakub Narebski Poland