delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/13/14:51:13

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <4.3.1.2.20010213141557.019edfa0@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Tue, 13 Feb 2001 14:22:21 -0500
To: jik-cygwin AT curl DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Optimizing away "ReadFile" calls when Make calls stat()
Cc: cygwin AT cygwin DOT com
In-Reply-To: <20010213191756.15822.qmail@lizard.curl.com>
References: <4 DOT 3 DOT 1 DOT 2 DOT 20010213140154 DOT 019d99c8 AT pop DOT ma DOT ultranet DOT com>
<4 DOT 3 DOT 1 DOT 2 DOT 20010213134821 DOT 019a7130 AT pop DOT ma DOT ultranet DOT com>
<4 DOT 3 DOT 1 DOT 2 DOT 20010213134821 DOT 019a7130 AT pop DOT ma DOT ultranet DOT com>
<4 DOT 3 DOT 1 DOT 2 DOT 20010213140154 DOT 019d99c8 AT pop DOT ma DOT ultranet DOT com>
Mime-Version: 1.0

At 02:17 PM 2/13/2001, jik-cygwin AT curl DOT com wrote:
> >  Date: Tue, 13 Feb 2001 14:08:58 -0500
> >  From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
> >  
> >  >1) The cache would have to be automatically invalidated whenever the
> >  >    file is changed, and you'd thus need to check if a file has changed
> >  >    before using the cache, and those checks would themselves take
> >  >    time.
> >  
> >  I'd submit that while this may be true in general, it shouldn't be in the
> >  case of symbolic links and executables.  These attributes don't really change
> >  or, if they do, they change in a very defined way which should make it 
> >  possible to track.
>
>Yikes, I don't agree with that at all.
>
>Non-deterministic behavior is *much* worse than slow behavior.  It
>would be *impossible* for Cygwin to track every single change to
>symbolic links and/or executable files, since people can modify such
>files without going through Cygwin at all (e.g., modifying them
>directly with a Windows app, or modifying such a file on a SAMBA mount
>through Linux).
>
>Since it's impossible for Cygwin to know when such files are changed
>out from under it, it *must* check them, or at least check if they
>have been changed, each time they are accessed.


Again, in general, I agree with you.  Still, it depends on what attributes
are being cached.  If we limit ourselves to checking for executables and
symbolic links, I don't see a major problem.  The only thing that this won't 
catch is places which someone changes their executable file to a 
non-executable or vice versa (same for symbolic link files).  Assuming the 
cache ages relatively quickly, this shouldn't be an issue.  Your point is
taken however.



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019