http://bugs.winehq.org/show_bug.cgi?id=25733
--- Comment #1 from Per Johansson per@morth.org 2011-01-08 18:09:12 CST --- This simple diff helps quite a bit, bringing it down from about 3 minutes to under one minute. It only works since I'm using a case insensitive native filesystem, obviously.
diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c index 711a0b0..50b3c54 100644 --- a/dlls/ntdll/directory.c +++ b/dlls/ntdll/directory.c @@ -1824,6 +1824,7 @@ static NTSTATUS find_file_in_dir( char *unix_name, int pos, const WCHAR *name, i if (is_win_dir) *is_win_dir = is_same_file( &windir, &st ); return STATUS_SUCCESS; } + goto not_found; } if (check_case) goto not_found; /* we want an exact match */