git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Patrick Steinhardt <ps@pks.im>
Cc: Han Young <hanyang.tony@bytedance.com>,  git@vger.kernel.org
Subject: Re: [PATCH] blame: only parse detailed commit info if needed
Date: Tue, 22 Jul 2025 10:08:00 -0700	[thread overview]
Message-ID: <xmqq5xfktaq7.fsf@gitster.g> (raw)
In-Reply-To: <aH-dGhHm2xuY4yT3@pks.im> (Patrick Steinhardt's message of "Tue, 22 Jul 2025 16:15:54 +0200")

Patrick Steinhardt <ps@pks.im> writes:

> On Tue, Jul 22, 2025 at 07:42:20PM +0800, Han Young wrote:
>> In commit cee7f245d (git-pickaxe: blame rewritten., 2006-10-19),
>> The function get_commit_info can terminate commit parsing early if only
>> the author information is needed. This ability is not used by callers
>> who do not require detailed commit information. Stop requesting detailed
>> commit information for these callers.
>
> Okay. I think there's two important pieces of information missing here:
>
>   - What does this buy us? I guess the answer is performance, but it
>     would be sure to quantify in which scenarios and how much of a
>     speedup this buys us.
>
>   - Any reasoning why those two callers don't need the information.
>     Reviewers can try to piece it together manually, but it would be
>     nice to hold their hand and lead them through the change.

Good questions to ask.  

If the answer to the first question is "well, not really?", then
another thing to consider would be if we want to remove that
short-cut as conditionally grabbing only just some pieces of
information without getting others is not helping.

Thanks.

  reply	other threads:[~2025-07-22 17:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-22 11:42 [PATCH] blame: only parse detailed commit info if needed Han Young
2025-07-22 14:15 ` Patrick Steinhardt
2025-07-22 17:08   ` Junio C Hamano [this message]
2025-07-23  6:02   ` [External] " Han Young

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqq5xfktaq7.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=hanyang.tony@bytedance.com \
    --cc=ps@pks.im \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).