Le 20/02/2014 16:23, Jan Nijtmans a écrit :
> 2014-02-20 15:17 GMT+01:00 Samuel Debionne <samuel.debio...@ujf-grenoble.fr>:
>> While debugging vfile.c I noticed that vfile_scan does not use
>> "dirent.d_type" to dispatch between folder and regular file/link but
>> uses an addition getStat call. I came across this thread that claims a
>> high speedup for command like "git status" with this kind of optimization :
>>
>> https://groups.google.com/forum/#!searchin/msysgit/d_type/msysgit/PGCFol99xUo/vjEPrajM_QsJ
>>
>> Has this been ever considered ? Worth a try ?
> 
> Something like:
>      <http://fossil-scm.org/index.html/info/0c7834c77b>
> ?????
> 
> It looks like _DIRENT_HAVE_D_TYPE is set for MSC
> (win/include/dirent.h) and on WinGW-w64, but not bare
> MinGW. I have no idea whether's it's worth or not.

The mingwrt-4.0 release notes say:

"Redefine the structure for dirent and _wdirent to include d_type and be
  copesetic to Microsoft attributes."

http://sourceforge.net/p/mingw/mingw-org-wsl/ci/4.0.0/tree/NEWS

Unfortunaley I think there is a bug that I have just reported here :

http://sourceforge.net/p/mingw/bugs/2185/

Fortunately the workaround is quite easy.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to