Re: name-rev --stdin is slow
- From
Daniel Barkalow <barkalow@iabervon.org>
- Date
- Jun 19, 2008, 22:03 UTC
- Message-ID
- <alpine.LNX.1.00.0806191755510.19665@iabervon.org>
- In-Reply-To
- <485ACB34.2020901@gmail.com>
On Thu, 19 Jun 2008, Lea Wiemann wrote:
Show 6 quoted lines
> name-rev --stdin has some really high start-up time. The example below is on > my git.git branch. Is this unavoidable to make name-rev fast for naming high > numbers of revisions -- i.e. is it about amortization? Still, 0.7 seconds > seems pretty excessive, and on linux-2.6 it even takes 6 seconds. > > Anyone care to look into it?
Actually, I think it's the reverse: without --stdin, name-rev can do a first pass that lets it eliminate a lot of data from consideration; with --stdin, it doesn't know if an item it hasn't seen is going to need some data, and so it's conservative and doesn't eliminate anything, which means that each request is slower, at least until it's cached everything that you turn out to care about.
-Daniel *This .sig left intentionally blank*