Re: jk/tag-contains (Re: What's cooking in git.git (Jul 2010, #05; Wed, 28))

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff King <peff@xxxxxxxx> writes:

> That's basically a finer-grained version of what I implemented. Mine
> finds the _worst_ skew for the whole graph, and never lets you optimize
> a traversal cutoff more than that skew. So it is nicely bounded
> space-wise, as it is always a single integer, but you waste effort on
> the entire traversal because a couple of commits are skewed. Yours
> optimizes perfectly, but needs O(skewed commits) storage. Which is
> probably a better tradeoff when the number of skewed commits is tiny
> (which is what we expect).

One thing missing from the above equation is that O(skewed commits)
approach will need O(number of commits) look-ups in the skew database (be
it a notes tree or whatever), only to make sure that most of the look-ups
say "no timestamp tweak required".  So I think the global single integer
approach you took would probably be better in the overall picture.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]