Re: Performance issue of 'git branch'
- From
- Carlos R. Mafra <crmafra2@gmail.com>
- Date
- Jul 23, 2009, 19:55 UTC
- Message-ID
- <20090723195548.GA28494@Pilar.aei.mpg.de>
- In-Reply-To
- <alpine.LFD.2.01.0907231212180.21520@localhost.localdomain>
On Thu 23.Jul'09 at 12:13:41 -0700, Linus Torvalds wrote:
Show 5 quoted lines
> > 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!