Re: Git performance on OS X
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Apr 19, 2008, 22:44 UTC
- Message-ID
- <m3od85qxcl.fsf@localhost.localdomain>
- In-Reply-To
- <FEFAB19F-742A-452E-87C1-CD55AD0996DB@ai.rug.nl>
Pieter de Bie <pdebie@ai.rug.nl> writes:
Show 10 quoted lines
> On 19 apr 2008, at 23:54, Linus Torvalds wrote: > > > > 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 :).
By the way, what version of git do you use? Because in RelNotes for 1.5.5 there is:
* "git commit" does not run lstat(2) more than necessary anymore.
which I guess also apply to git status. This change was written by Linus if I remember correctly...
-- Jakub Narebski Poland ShadeHawk on #git