From: Clemens Buchacher Date: Wed, 13 Oct 2010 22:56:01 GMT Subject: Re: [RFC/PATCH 1/4] tag: speed up --contains calculation Message-ID: <20101013225601.GC2558@localhost> In-Reply-To: <20100705123335.GA25699@sigill.intra.peff.net> On Mon, Jul 05, 2010 at 08:33:36AM -0400, Jeff King wrote: > > This sped up "git tag --contains HEAD~200" in the linux-2.6 > repository from: > > real 0m15.417s > user 0m15.197s > sys 0m0.220s FWIW, in the staging tree they have a new tag for almost every day. My linux repo currently has 677 tags. This same command would probably take hours. I have not had the patience yet to let it finish. With your patch I get this. $ time git tag --contains HEAD~200 v2.6.36-rc3 v2.6.36-rc4 v2.6.36-rc5 real 0m8.047s user 0m7.755s sys 0m0.268s Clemens