Win32: make the lstat implementation pluggable
commit7f5b617c612b7725706a5f994475393c029589fe
authorKarsten Blees <blees@dcon.de>
Sun, 8 Sep 2013 12:21:30 +0000 (8 14:21 +0200)
committerKarsten Blees <blees@dcon.de>
Sat, 16 Aug 2014 01:02:47 +0000 (16 03:02 +0200)
tree1e9fd5ed09ec5325dc6610bddf50b9c6e56e6d92
parentd3bba01436e1467df1fb0ceef000780df83a88e1
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