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

Re: git tag --contains now takes a long time

From
Karthik Nayak <karthik.188@gmail.com>
Date
Oct 18, 2015, 10:04 UTC
Message-ID
<CAOLa=ZQNL1YUFzWYCiYhRf4ESmeCTtZEXzbbf39d7DqSkbj66g@mail.gmail.com>
In-Reply-To
<xmqq1tctchgz.fsf@gitster.mtv.corp.google.com>
On Sun, Oct 18, 2015 at 2:58 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 32 quoted lines
> Karthik Nayak <karthik.188@gmail.com> writes:
>
>> So I did poke around a little. I think I missed this out on the
>> original commit (b7cc53e92c806b73e14b03f60c17b7c29e52b4a4).
>>
>> diff --git a/builtin/tag.c b/builtin/tag.c
>> index 977a18c..2c5a9f1 100644
>> --- a/builtin/tag.c
>> +++ b/builtin/tag.c
>> @@ -49,6 +49,7 @@ static int list_tags(struct ref_filter *filter,
>> struct ref_sorting *sorting)
>>                 format = "%(refname:short)";
>>
>>         verify_ref_format(format);
>> +       filter->with_commit_tag_algo = 1;
>>         filter_refs(&array, filter, FILTER_REFS_TAGS);
>>         ref_array_sort(sorting, &array);
>> ...
>>
>> Could you Squash that in, Junio?
>
> Do we have two implementations that are supposed to compute the same
> thing, and with the bit set to 1, the faster of these two is used?
> Is there a reason somebody may want to use the slower one?  What
> difference other than performance does the choice of this bit makes,
> and why?
>
> I think the answers to the above questions deserve to be in the log
> message (no, I do not think I can "squash it in", rewriting the
> commit that has already been merged to 'next' and 'master').
>
> Thanks.
I'll resend the patch then with the changed commit message.
Thanks.
-- 
Regards,
Karthik Nayak
Previous: Junio C Hamano
Message 8 of 8 in “git tag --contains now takes a long time”
  1. Jerry SnitselaarOct 16, 2015
  2. Junio C HamanoOct 16, 2015
  3. Karthik NayakOct 17, 2015
  4. Jerry SnitselaarOct 17, 2015
  5. Matthieu MoyOct 17, 2015
  6. Karthik NayakOct 17, 2015
  7. Junio C HamanoOct 17, 2015
  8. Karthik NayakOct 18, 2015

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.