From: Nguyen Thai Ngoc Duy Date: Sat, 20 Oct 2012 09:02:30 GMT Subject: Re: [PATCH] Cache stat_tracking_info() for faster status and branch -v Message-ID: In-Reply-To: <7v7gqmjl6n.fsf@alter.siamese.dyndns.org> On Sat, Oct 20, 2012 at 2:50 AM, Junio C Hamano wrote: > Not particularly interested in the cause, but not so strongly > against it to veto it. I wonder how many people keep old branches like I do, which are usually far from remotes. > Doesn't it make more sense to use a notes-cache that is keyed off of > the commit object name X of the remote? You will have a single note > that stores a blob for the commit object remotes/origin/master, and > the blob tells you how far the commit at the tip of 'frotz' is from > it, and the same for 'xyzzy'. > > You would obviouly need to run "gc" on such a notes-cache tree from > time to time, removing notes for commits that are not tip of any > branch that could be a fork point, and from the remaining notes > blobs, entries that describe commits that are not tip of any branch, > if you go that route. The notes-cache route looks much nicer. Thanks. We can also use Jeff's persistent hash table from his rename-cache series. -- Duy