This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Optimizing away "ReadFile" calls when Make calls stat()


On Tue, Feb 13, 2001 at 02:54:01PM -0500, DJ Delorie wrote:
>> But it does nothing at all for the "usual case" I'm trying to
>> optimize, which is Make stat()ing a file but never reading it.
>
>It does, because stat() reads the file twice, once to see if it's a
>symlink, and once to see if the executable bit needs to be set.

If it is actually doing this, then that's a bug.  I went to some effort
a year or so ago to do away with the second read.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]