git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Derrick Stolee <stolee@gmail.com>
To: Jeff King <peff@peff.net>, git@vger.kernel.org
Cc: Derrick Stolee <dstolee@microsoft.com>,
	Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH 0/4] a few mark_parents_uninteresting cleanups
Date: Mon, 14 May 2018 08:50:03 -0400	[thread overview]
Message-ID: <db32fff6-b6f0-a420-bf3e-30b17154bf70@gmail.com> (raw)
In-Reply-To: <20180511180029.GA11290@sigill.intra.peff.net>

On 5/11/2018 2:00 PM, Jeff King wrote:
> This is a follow-up to the discussion from February:
>
>    https://public-inbox.org/git/1519522496-73090-1-git-send-email-dstolee@microsoft.com/
>
> There I theorized that some of these extra has_object_file() checks were
> unnecessary. After poking around a bit, I've convinced myself that this
> is the case, so here are some patches.
>
> After Stolee's fix in ebbed3ba04 (revision.c: reduce object database
> queries, 2018-02-24), I doubt this will provide any noticeable speedup.
> IMHO the value is just in simplifying the logic.
>
> The first two patches are the actual has_object_file simplifications.
> The second two are an attempt to fix some head-scratching I had while
> reading mark_parents_uninteresting(). I hope the result is easier to
> follow, but I may have just shuffled one confusion for another. :)
>
>    [1/4]: mark_tree_contents_uninteresting(): drop missing object check
>    [2/4]: mark_parents_uninteresting(): drop missing object check
>    [3/4]: mark_parents_uninteresting(): replace list with stack
>    [4/4]: mark_parents_uninteresting(): avoid most allocation
>
>   revision.c | 90 ++++++++++++++++++++++++++++++------------------------
>   1 file changed, 50 insertions(+), 40 deletions(-)
>
> -Peff

This series looks good to me. I found Patch 3 hard to read in the diff, 
so I just looked at the final result and the new arrangement is very 
clear about how it should behave.

Reviewed-by: Derrick Stolee <dstolee@microsoft.com>

      parent reply	other threads:[~2018-05-14 12:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-11 18:00 [PATCH 0/4] a few mark_parents_uninteresting cleanups Jeff King
2018-05-11 18:00 ` [PATCH 1/4] mark_tree_contents_uninteresting(): drop missing object check Jeff King
2018-05-11 18:01 ` [PATCH 2/4] mark_parents_uninteresting(): " Jeff King
2018-05-13  2:23   ` Junio C Hamano
2018-05-11 18:02 ` [PATCH 3/4] mark_parents_uninteresting(): replace list with stack Jeff King
2018-05-11 18:03 ` [PATCH 4/4] mark_parents_uninteresting(): avoid most allocation Jeff King
2018-05-14 12:47   ` Derrick Stolee
2018-05-14 13:09     ` Jeff King
2018-05-14 13:25       ` Derrick Stolee
2018-05-14 14:09         ` Jeff King
2018-05-14 12:50 ` Derrick Stolee [this message]

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=db32fff6-b6f0-a420-bf3e-30b17154bf70@gmail.com \
    --to=stolee@gmail.com \
    --cc=dstolee@microsoft.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=peff@peff.net \
    /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).