Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Tue, 13 Feb 2001 14:47:05 -0500
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: Optimizing away "ReadFile" calls when Make calls stat()
Message-ID: <20010213144705.C12411@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20010213183634.1435.qmail@lizard.curl.com> <4.3.1.2.20010213134821.019a7130@pop.ma.ultranet.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.11i
In-Reply-To: <4.3.1.2.20010213134821.019a7130@pop.ma.ultranet.com>; from lhall@rfk.com on Tue, Feb 13, 2001 at 01:51:50PM -0500

On Tue, Feb 13, 2001 at 01:51:50PM -0500, Larry Hall (RFK Partners, Inc) wrote:
>At 01:36 PM 2/13/2001, Jonathan Kamens wrote:
>>Please comment.
>
>
>
>I know this would only address half the problem but I wonder if it would make
>sense to cache the results of ReadFile() so that separate checks for symbolic
>links and executables would result in only 1 ReadFile() call.  This seems
>like a nice general optimization which wouldn't be so "gross"...

Actually, I wonder if just mounting the directory with the execute bit
set ("mount -x c:\bin /bin") would solve this.  It would cause every
file to be considered executable but it may bypass the ReadFile.

cgf

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

