git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Cache stat_tracking_info() for faster status and branch -v

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Oct 20, 2012, 09:02 UTC
Message-ID
<CACsJy8A2ub2y64qAbP2OTPNsVi-KmxAMFdwBBLXYReF5ASZLKg@mail.gmail.com>
In-Reply-To
<7v7gqmjl6n.fsf@alter.siamese.dyndns.org>
On Sat, Oct 20, 2012 at 2:50 AM, Junio C Hamano <gitster@pobox.com> 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.

Show 11 quoted lines
> 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
Previous: Junio C Hamano
Message 3 of 3 in “Cache stat_tracking_info() for faster status and branch -v”
  1. Cache stat_tracking_info() for faster status and branch -vNguyễn Thái Ngọc Duy, Oct 16, 2012
  2. Junio C HamanoOct 19, 2012
  3. Nguyen Thai Ngoc DuyOct 20, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.