Re: Git performance on OS X
- From
- Pieter de Bie <pdebie@ai.rug.nl>
- Date
- Apr 19, 2008, 22:00 UTC
- Message-ID
- <FEFAB19F-742A-452E-87C1-CD55AD0996DB@ai.rug.nl>
- In-Reply-To
- <alpine.LFD.1.10.0804191443550.2779@woody.linux-foundation.org>
On 19 apr 2008, at 23:54, Linus Torvalds wrote:
> > > Btw, the "git status" issue is totally different. >
Yes, I was aware of that, but still found it interesting to test.
Show 5 quoted lines
> > And yes, most of the time in "git status ." is going to be the lstat() > calls. Which are expensive on OS X. And yes, we do too many of them. > I'll > look at seeing if we can avoid some.
I just tested this. "git status ." does 428815 (400k!) lstats, almost 10x as many as there are files in the repository. I'd agree that this is the reason it's slow on OS X :).
- Pieter