Skip to content

perf improvements for git-describe with few tags

Jeff King git linux-kbuild lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4t6120: demonstrate weakness in disjoint-root handlingt/t6120-describe.sh+11 -30 replies
2/4t/perf: add tests for git-describet/perf/p6100-describe.sh+30 -00 replies
3/4describe: stop digging for max_candidates+1builtin/describe.c+8 -70 replies
4/4describe: stop traversing when we run out of namesbuiltin/describe.c+2 -010 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchRasmus Villemoes
1/4
2/4
3/4Helped-by
4/4Helped-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] perf improvements for git-describe with few tags
Quoted 1 line · Benno Evers

I'm afraid I can't offer much wisdom, but a few thoughts:

Thank you. Between this response and a bit of pondering over the last few days, I think I have a firm understanding of the issue and possible paths forward.

So here's the series I came up with, which starts by adjusting the tests to be resilient to the later changes, but also to show the existing failure mode.

And then the rest of the patches add the performance improvements we've been discussing in the thread.

I'll drop the kernel lists from the cc since I think this has gotten well off topic there.

[1/4]: t6120: demonstrate weakness in disjoint-root handling [2/4]: t/perf: add tests for git-describe
[3/4]: describe: stop digging for max_candidates+1 [4/4]: describe: stop traversing when we run out of names

 builtin/describe.c       | 17 ++++++++++-------
 t/perf/p6100-describe.sh | 30 ++++++++++++++++++++++++++++++
 t/t6120-describe.sh      | 15 ++++++++++++---
 3 files changed, 52 insertions(+), 10 deletions(-)
 create mode 100755 t/perf/p6100-describe.sh

-Peff