[PATCH] localrepo: introduce persistent caching of revset revision's branch names

Mads Kiilerich mads at kiilerich.com
Wed Oct 15 07:47:47 CDT 2014


On 10/15/2014 04:58 AM, Mads Kiilerich wrote:
> The cache file _could_ also store the hash of each revision so it 
> could reuse as much as possible after a strip. That would make it at 
> least 5 times bigger and less efficient. Would you prefer that?

Some further thoughts on this:

Storing the hashes would not be a big deal. The main problem would be 
that given a rev number, we would have to fetch the hash and compare it 
every time we access the cache. It would nice to avoid that ... but 
probably still faster than not caching ...

/Mads


More information about the Mercurial-devel mailing list