From: Carlos R. Mafra Date: Thu, 23 Jul 2009 19:55:48 GMT Subject: Re: Performance issue of 'git branch' Message-ID: <20090723195548.GA28494@Pilar.aei.mpg.de> In-Reply-To: On Thu 23.Jul'09 at 12:13:41 -0700, Linus Torvalds wrote: > > It will still do _some_ object lookups. In particular, it will do the HEAD > > lookup in 'print_ref_list()', even if it's not strictly necessary. But it > > should cut down the noise further. > > And this (on top of them all) will basically avoid even that one. Ok, I applied (both) on top of the first one. After 7 tests I got these, time: 0.61 +/- 0.08 GIT_DEBUG_LOOKUP=1 git branch |wc -l 9 which are in fact only the branches list. Compared to yesterday, that is a huge improvement (0.6s vs 5.7s) and (9 vs 2200+). At least for me 0.6s is "instantaneous", so the issue is really gone. Thanks a lot to everyone!