Re: [RFC/PATCH 1/4] tag: speed up --contains calculation
- From
Clemens Buchacher <drizzd@aon.at>
- Date
- Oct 13, 2010, 22:56 UTC
- 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:
Show 7 quoted lines
> > 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