On Fri, Jul 15, 2011 at 4:10 PM, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote: > > Maybe there is something seriously wrong with this trivial patch, but > it gave the right results for the test-cases I threw at it, and passes > the tests. > > Before: I have fewer branches than tags, but I get something similar for "git branch --contains": [torvalds@i5 linux]$ time git branch --contains v2.6.12 | sha1sum 9d4224eec98ec7b0bcd5331dfa5badb9ef1fd510 - real 0m4.205s user 0m4.112s sys 0m0.084s [torvalds@i5 linux]$ time ~/git/git branch --contains v2.6.12 | sha1sum 9d4224eec98ec7b0bcd5331dfa5badb9ef1fd510 - real 0m0.112s user 0m0.100s sys 0m0.008s ie identical results, except one took 4.2s and with the patch it took 0.1s. This is all hot-cache, of course, and on a fast machine. Linus -- 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