git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Duy Nguyen <pclouds@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH 2/2] list-objects: only look at cmdline trees with edge_hint
Date: Mon, 20 Jan 2014 21:22:54 -0500	[thread overview]
Message-ID: <20140121022254.GA4597@sigill.intra.peff.net> (raw)
In-Reply-To: <CACsJy8CBuW0dXgbSLgFHye9-aCDQCaK47MFpqeCh3m3JWHJOEw@mail.gmail.com>

On Tue, Jan 21, 2014 at 06:57:08AM +0700, Duy Nguyen wrote:

> You must have so much fun (or headache, depending on your view) with
> the variety of repos on github :)

It's fun on days like these when the solution is fairly straightforward.
:)

> > +       if (revs->edge_hint) {
> > +               for (i = 0; i < revs->cmdline.nr; i++) {
> > +                       struct object *obj = revs->cmdline.rev[i].item;
> > +                       struct commit *commit = (struct commit *)obj;
> > +                       if (obj->type != OBJ_COMMIT || !(obj->flags & UNINTERESTING))
> > +                               continue;
> > +                       mark_tree_uninteresting(commit->tree);
> > +                       if (revs->edge_hint && !(obj->flags & SHOWN)) {
> 
> Not really important, but perhaps remove revs->edge_hint here because
> it's already checked?

Yes, I think that is a good idea. Thanks.

Re-roll coming in a moment.

-Peff

  reply	other threads:[~2014-01-21  2:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-20 21:28 [PATCH 0/2] performance regression in mark_edges_uninteresting Jeff King
2014-01-20 21:31 ` [PATCH 1/2] t/perf: time rev-list with UNINTERESTING commits Jeff King
2014-01-20 22:11   ` Jeff King
2014-01-20 22:32     ` Thomas Rast
2014-01-20 22:39       ` Jeff King
2014-01-20 21:32 ` [PATCH 2/2] list-objects: only look at cmdline trees with edge_hint Jeff King
2014-01-20 23:57   ` Duy Nguyen
2014-01-21  2:22     ` Jeff King [this message]
2014-01-20 22:29 ` [PATCH 0/2] performance regression in mark_edges_uninteresting Jeff King
2014-01-21  2:24 ` [PATCH v2 " Jeff King
2014-01-21  2:25   ` [PATCH v2 1/2] t/perf: time rev-list with UNINTERESTING commits Jeff King
2014-01-21  2:25   ` [PATCH v2 2/2] list-objects: only look at cmdline trees with edge_hint Jeff King
2014-01-21 22:49     ` Junio C Hamano

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=20140121022254.GA4597@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    --cc=pclouds@gmail.com \
    /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).