Win32: make the lstat implementation pluggable
commitbbb31517e2dbe3a181e202040fce4c15b2c1b601
authorKarsten Blees <blees@dcon.de>
Sun, 8 Sep 2013 12:21:30 +0000 (8 14:21 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 10 May 2014 21:56:56 +0000 (10 16:56 -0500)
tree39078771cb2d024a395cc6616f566ba0027e4ed0
parent3d76202fc538be55b08498ab61a6c4508fe10f28
Win32: make the lstat implementation pluggable

Emulating the POSIX lstat API on Windows via GetFileAttributes[Ex] is quite
slow. Windows operating system APIs seem to be much better at scanning the
status of entire directories than checking single files. A caching
implementation may improve performance by bulk-reading entire directories
or reusing data obtained via opendir / readdir.

Make the lstat implementation pluggable so that it can be switched at
runtime, e.g. based on a config option.

Signed-off-by: Karsten Blees <blees@dcon.de>
compat/mingw.c
compat/mingw.h