This is the mail archive of the
cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Cygwin performance (was [ANN] PW32 the...)
- To: cygdev <cygwin-developers at sourceware dot cygnus dot com>
- Subject: Re: Cygwin performance (was [ANN] PW32 the...)
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Wed, 15 Mar 2000 14:15:26 -0500
- References: <38CF6031.7D7A28BB@vinschen.de> <8781.000315@logos-m.ru>
- Reply-To: cygwin-developers at sourceware dot cygnus dot com
On Wed, Mar 15, 2000 at 06:45:12PM +0300, Egor Duda wrote:
>i don't see why
>
>#ifdef __CYGWIN__
> #define CYGWIN_STAT_LITE_FLAGS (STAT_LITE_TIME | STAT_LITE_SIZE | STAT_LITE_OWNER | STAT_LITE_PERM)
> cygwin_stat_lite (path, buf, CYGWIN_STAT_LITE_FLAGS);
>#else
> stat (path, buf);
>#endif
>
>is so much different from
>
>#ifdef __CYGWIN__
> CreateProcessAsUser (...);
>#else
> // ... some unix-way code
>#endif
I'm not sure that this is a valid analogy. The "CreateProcessAsUser"
example is really an indication of a "bug" in cygwin. It's an
indication of a non-fully-functional setuid (or something).
The goal would be to make the CreateProcessAsUser requirement go away
in a future version of cygwin.
Maybe I'm just optimistically holding out for some clever solution in
stat() that will speed things up so much that stat_lite is not required.
cgf