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

Re: What's cooking in git.git (Nov 2010, #01; Tue, 9)

From
Jeff King <peff@peff.net>
Date
Nov 9, 2010, 22:11 UTC
Message-ID
<20101109221142.GB5617@sigill.intra.peff.net>
In-Reply-To
<7vbp5ymfyo.fsf@alter.siamese.dyndns.org>
On Tue, Nov 09, 2010 at 11:53:19AM -0800, Junio C Hamano wrote:
Show 10 quoted lines
> * jk/tag-contains (2010-07-05) 4 commits
>  - Why is "git tag --contains" so slow?
>  - default core.clockskew variable to one day
>  - limit "contains" traversals based on commit timestamp
>  - tag: speed up --contains calculation
> 
> The idea of the bottom one is probably Ok, except that the use of object
> flags needs to be rethought, or at least the helper needs to be moved to
> builtin/tag.c to make it clear that it should not be used outside the
> current usage context.

This, btw, is still on my todo list. I got pleasing performance results using a notes tree to store a list of commits with bogus timestamps, so I need to clean that up and submit. I think that may spin off into its own topic entirely, as it is about handling clock skew better everywhere, not just in the newly introduced "tag --contains" code.

I'm also still trying to figure out if there is a way to avoid the depth-first search of the "tag --contains" patch. It can have worse performance in a few corner cases than the merge-base approach (i.e., we end up going to the roots sometimes when we make an unlucky depth-first traversal). Though with the commit-time optimization (which depends on sane skew handling from above), that goes away, so maybe it is not worth caring too much.

-Peff
Previous: Johan HerlandNext: Erik Faye-Lund
Message 10 of 26 in “What's cooking in git.git (Nov 2010, #01; Tue, 9)”
  1. Junio C HamanoNov 9, 2010
  2. Ævar Arnfjörð BjarmasonNov 9, 2010
  3. Matthieu MoyNov 9, 2010
  4. Drew NorthupNov 9, 2010
  5. Jonathan NiederNov 9, 2010
  6. Jakub NarebskiNov 9, 2010
  7. Junio C HamanoNov 11, 2010
  8. Jakub NarebskiNov 11, 2010
  9. Johan HerlandNov 9, 2010
  10. Jeff KingNov 9, 2010
  11. Erik Faye-LundNov 9, 2010
  12. Ævar Arnfjörð BjarmasonNov 9, 2010
  13. Erik Faye-LundNov 9, 2010
  14. Ævar Arnfjörð BjarmasonNov 9, 2010
  15. Yann DirsonNov 10, 2010
  16. Nguyen Thai Ngoc DuyNov 11, 2010
  17. Nguyen Thai Ngoc DuyNov 11, 2010
  18. use persistent memory for rejected pathsClemens Buchacher, Nov 14, 2010
  19. Junio C HamanoNov 15, 2010
  20. Clemens BuchacherNov 15, 2010
  21. Matthieu MoyNov 15, 2010
  22. Clemens BuchacherNov 15, 2010
  23. use persistent memory for rejected pathsClemens Buchacher, Nov 15, 2010
  24. Matthieu MoyNov 16, 2010
  25. Junio C HamanoNov 15, 2010
  26. Clemens BuchacherNov 15, 2010

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.