From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org, Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [RFH] revision limiting sometimes ignored
Date: Sat, 02 Feb 2008 23:40:40 -0800 [thread overview]
Message-ID: <7vbq6yzdvr.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20080203071833.GA16273@coredump.intra.peff.net> (Jeff King's message of "Sun, 3 Feb 2008 02:18:33 -0500")
Jeff King <peff@peff.net> writes:
> We could topologically order the commits going into limit_list (it just
> works most of the time because the date ordering is _mostly_ right).
> This guarantees that we deal with 'four' before 'one'. But topo sorting
> is expensive.
I recall we did a rather clever optimization in merge-base. I
am starting to suspect that we would need a similar trick there.
The issue is:
* We have pushed "one" out already to "newlist", but we haven't
given UNINTERESTING bit to it yet.
* We are responsible to mark "one" UNINTERESTING, if it can be
reached from a commit that is UNINTERESTING. We expect
further looping of the "while (list)" and
mark_parents_uninteresting() in that loop will eventually
smudge it.
* We can obviously prove that we marked all UNINTERESTING
commits that matters by traversing _all_ history (i.e. make
sure mark_parents_uninteresting() recurses, and wait until
"list" truly becomes empty), but we would want to somehow
optimize it. The everybody_uninteresting() check was
introduced for that purpose, but that is not a right
optimization if commit timestamps are skewed like this.
The right optimization is probably:
* Wait until everybody on "list" is UNINTERESTING. IOW, keep
the "everybody_uninteresting()" check with break as is.
At that point "newlist" will contain all the commits that we
might be interested in (e.g. "one"). The issue is reduced
from "mark _all_ commits that can be reached from known
UNINTERESTING ones" to "make sure the commits on the newlist
that are reachable from UNINTERESTING ones in the "list" are
marked as UNINTERESTING (e.g. "one" should be checked for
reachability from the remaining UNINTERESTING commits in
"list", we do not have to check for anything else).
* After the loop exits, traverse from all non UNINTERESTING
commits on the "newlist" and all remaining commits on the
"list" (by definition, the latter are UNINTERESTING) down to
their common merge base, propagating UNINTERESTING bit down.
Once we do that, we have proven that "one" is reachable from
any of the UNINTERESTING commit.
next prev parent reply other threads:[~2008-02-03 7:41 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-02 12:21 [BUG?] git log picks up bad commit Tilman Sauerbeck
2008-02-03 3:00 ` Jeff King
2008-02-03 4:33 ` [RFH] revision limiting sometimes ignored Jeff King
2008-02-03 6:24 ` Junio C Hamano
2008-02-03 6:39 ` Junio C Hamano
2008-02-03 7:13 ` Jeff King
2008-02-03 7:18 ` Jeff King
2008-02-03 7:40 ` Junio C Hamano [this message]
2008-02-03 7:47 ` Junio C Hamano
2008-02-03 8:18 ` Junio C Hamano
2008-02-04 17:32 ` Linus Torvalds
2008-02-04 17:37 ` Linus Torvalds
2008-02-04 19:08 ` Junio C Hamano
2008-02-04 20:03 ` Linus Torvalds
2008-02-04 20:06 ` Linus Torvalds
2008-02-04 20:50 ` Linus Torvalds
2008-02-05 7:14 ` Junio C Hamano
2008-02-05 21:23 ` Linus Torvalds
2008-02-05 22:34 ` Johannes Schindelin
2008-02-05 23:59 ` Linus Torvalds
2008-02-06 16:43 ` Tilman Sauerbeck
2008-02-06 17:28 ` Nicolas Pitre
2008-02-06 17:42 ` Linus Torvalds
2008-02-06 17:48 ` Nicolas Pitre
2008-02-06 19:26 ` Linus Torvalds
2008-02-06 1:22 ` Nicolas Pitre
2008-02-06 1:51 ` Junio C Hamano
2008-02-06 6:05 ` Junio C Hamano
2008-02-06 6:17 ` Junio C Hamano
2008-02-05 23:44 ` Junio C Hamano
2008-02-06 0:52 ` Linus Torvalds
2008-02-06 5:30 ` Junio C Hamano
2008-02-06 8:16 ` Karl Hasselström
2008-02-06 10:34 ` Linus Torvalds
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=7vbq6yzdvr.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=torvalds@linux-foundation.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.