From: Jakub Narebski Date: Tue, 12 Jul 2011 10:41:35 GMT Subject: Re: [PATCH 2/5] add object-cache infrastructure Message-ID: <201107121241.40242.jnareb@gmail.com> In-Reply-To: <20110711161754.GB10418@sigill.intra.peff.net> On Mon, 11 July 2011, Jeff King wrote: > 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 > --- > 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