Optimizing away "ReadFile" calls when Make calls stat()
Bernard Dautrevaux
Dautrevaux@microprocess.com
Wed Feb 14 04:46:00 GMT 2001
> -----Original Message-----
> From: Christopher Faylor [ mailto:cgf@redhat.com ]
> Sent: Tuesday, February 13, 2001 11:29 PM
> To: cygwin@cygwin.com
> Subject: Re: Optimizing away "ReadFile" calls when Make calls stat()
>>> On Tue, Feb 13, 2001 at 05:13:49PM -0500, Puttkammer, Roman wrote:
> >
> >> -----Original Message-----
> >> From: jfaith@lineo.com [ mailto:jfaith@lineo.com ]
> >> ...
> >> script just did "make --version > /dev/null" one thousand times
> >> ...
> >> Linux: 3 sec.
> >> VMWare running Linux: 9 sec.
> >> DOS (batch file) 18 sec.
> >> Cygwin: 30 sec.
> >
> >AFAIK, fork() tends to be much slower on windows than on most unixes
> >such as solaris or linux.
>> There is no real fork on generic Win32. Cygwin emulates the
> fork call and
> it is, as a result, very slow.
>
AFAIK, cygwin is not the only at fault here, the raw Win32 CreateProcess()
call is quite slow also. In our cross-development toolset we only use a
"spawn" call implemented directly on top of ProcessCreate and we see a more
than 10-times performance loss between "fork/exec" on Linux and "spawn" on
NT :-)
Regards,
Bernard
--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel: +33 (0) 1 47 68 80 80
Fax: +33 (0) 1 47 88 97 85
e-mail: dautrevaux@microprocess.com
b.dautrevaux@usa.net
--------------------------------------------
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list