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

Re: [PATCH v3] describe: limit default ref iteration to tags

From
Jeff King <peff@peff.net>
Date
Jun 11, 2026, 06:49 UTC
Message-ID
<20260611064912.GC2191159@coredump.intra.peff.net>
In-Reply-To
<20260610-describe-tag-ref-scope-v3-1-5aa63ab279f7@gmail.com>
On Wed, Jun 10, 2026 at 11:50:01AM -0700, Tamir Duberstein wrote:
Show 11 quoted lines
> The runtime drops from 0.03(0.01+0.01) to 0.02(0.00+0.00). In a
> repository with 120,532 refs but only 330 tags, the same command went
> from 171.7 ms to 9.9 ms.
> 
> Signed-off-by: Tamir Duberstein <tamird@gmail.com>
> ---
> Changes in v3:
> - Pack the synthetic refs to better match repositories with many refs.
> - Generate update-ref input with test_seq -f.
> - Shorten the commit message and report the p6100.6 result.
> - Link to v2: https://patch.msgid.link/20260608-describe-tag-ref-scope-v2-1-256fd36dca32@gmail.com

Thanks, this looks fine to me. I am still puzzled that your 120k ref repo is so slow in the before case. Even bumping the perf test to 100k refs, it ~10ms on my machine. But maybe it's a combination of not being well packed, plus a slower filesystem.

At any rate, I think it is obvious that doing less work is always going to be better, so there's not much need to dig too deeply into the differences for information that is probably not that useful.

-Peff
Previous: Tamir Duberstein
Message 12 of 12 in “describe: limit default ref iteration to tags”
  1. describe: limit default ref iteration to tagsTamir Duberstein, Jun 9, 2026
  2. Jeff KingJun 9, 2026
  3. Junio C HamanoJun 9, 2026
  4. D. Ben KnobleJun 9, 2026
  5. Jeff KingJun 11, 2026
  6. Tamir DubersteinJun 9, 2026
  7. Junio C HamanoJun 10, 2026
  8. Patrick SteinhardtJun 10, 2026
  9. Junio C HamanoJun 10, 2026
  10. Jeff KingJun 11, 2026
  11. describe: limit default ref iteration to tagsTamir Duberstein, Jun 10, 2026
  12. Jeff KingJun 11, 2026

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.