From: Nguyen Thai Ngoc Duy Date: Thu, 18 Mar 2010 00:06:41 GMT Subject: Re: [PATCH] branch: only print upstream relationship with -v -v Message-ID: In-Reply-To: <7vwrxavqig.fsf@alter.siamese.dyndns.org> On 3/17/10, Junio C Hamano wrote: > Nguyễn Thái Ngọc Duy writes: > > > "git branch -v" is unusable for me because it's too slow. > > > ... > > > This is on a repository with ~30 branches, some are hundreds of > > patches behind upstream. > > > Perhaps you have an overeager branch.autosetupmerge configuration? No. Never heard of it. > I dunno. I seem to have a lot more branches than you do (currently > 56), but most of them are topics that, once they forked from a > particular commit, never merge other random commits, only because they > have new commits that are unrelated to the objective of the topic, so > most of my branches do not have "upstream" in that sense. I did sysprof and it seems half the time was spent inside merge_bases_many(). Being a complete ignorant about merging stuff, I put "return NULL;" at the beginning of that function, "git branch -v" now goes down to 2 seconds. Don't know if that could tell anything. -- Duy