Re: Too many 'stat' calls by git-status on Windows
- From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
- Date
- Jul 8, 2009, 19:49 UTC
- Message-ID
- <4A54F859.2080407@ramsay1.demon.co.uk>
- In-Reply-To
- <20090707000500.GA5594@dpotapov.dyndns.org>
Dmitry Potapov wrote: [snip]
> It appears that the second 'stat' for files on Windows caused by lack > of d_type in dirent. When I recompiled the Linux version with > NO_D_TYPE_IN_DIRENT = YesPlease, I got the same result for files.
I believe that the next version of cygwin, currently in beta, will have the d_type field in dirent. I know that's not much help now... (I don't think it would be a good idea to try and reto-fit d_type, ala compat/mingw.[ch], since cygwin does some funky stuff behind the scenes).
Nice profiling BTW.
ATB, Ramsay Jones