This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: findutils support in 1.7.0
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-developers at cygwin dot com
- Date: Mon, 28 Apr 2008 15:04:32 +0200
- Subject: Re: findutils support in 1.7.0
- References: <48129F17.5000707@byu.net> <20080426083905.GA3023@calimero.vinschen.de> <48131CB1.3070207@byu.net> <20080428121307.GZ23852@calimero.vinschen.de>
- Reply-to: cygwin-developers at cygwin dot com
On Apr 28 14:13, Corinna Vinschen wrote:
> On Apr 26 06:14, Eric Blake wrote:
> >>> Also, it looks like long path names are currently
> >>> quadratic in behavior,
> [...]
> As you know, NtQueryAttributesFile is the NT equivalent of
> GetFileAttributes. Maybe this function is slow by design and we're better
> off using something along the lines of either
>
> NtOpenFile
> NtQueryInformationFile
> NtClose
>
> or, maybe, something like
>
> NtOpenFile(parentdir)
> NtQueryDirectoryFile
> NtClose
>
> but that's something I will have to test first. I guess you will be
> surprised to read that now, but I'm slightly disappointed at Windows...
I stick to being disappointed. None of the above workarounds is any
faster. NT's path handling is obviously only designed for paths of up
to MAX_PATH length.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat