From: Ingo Molnar Date: Thu, 28 Apr 2011 09:38:37 GMT Subject: Re: [PATCH] git gc: Speed it up by 18% via faster hash comparisons Message-ID: <20110428093837.GA15847@elte.hu> In-Reply-To: <20110428091110.GA14431@elte.hu> * Ingo Molnar wrote: > > Another thing is that so far this optimization was only with > > GCC, and we do not know whether it helps or harms to compilers. > > So, maybe placing this code under 'ifdef __GNUC__' makes more > > sense than pushing this change on other compilers too. > > Well, given that 90%+ of Git development is done with GCC (and probably the > user share is similarly high as well): > > aldebaran:~/git> git log --pretty=oneline -i --grep gcc | wc -l > 127 > aldebaran:~/git> git log --pretty=oneline -i --grep llvm | wc -l > 1 I left out: aldebaran:~/git> git log --pretty=oneline -i --grep clang | wc -l 5 Still well within the 90%+ figure. Thanks, Ingo