delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/26/12:24:40

X-Spam-Check-By: sourceware.org
Date: Fri, 26 May 2006 12:23:54 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: slow share = slow scripts?
Message-ID: <20060526162354.GA7151@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <e54ihh$hnf$2 AT sea DOT gmane DOT org> <001c01c6806d$a1249e40$020aa8c0 AT DFW5RB41> <e577ch$6p3$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <e577ch$6p3$1@sea.gmane.org>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Fri, May 26, 2006 at 10:37:52AM -0500, mwoehlke wrote:
>Gary R. Van Sickle wrote:
>>>From: mwoehlke
>>[snip]
>>> Also, why *is* 
>>>fstat() so inefficient?
>>
>>Short answer:  because it gets a bunch of information about the file that
>>isn't necessarily available without hitting (open()ing) the file itself.
>
>Like... what? Inode information? Looking at the man page for 'stat' (on 
>Linux, anyway; apparently I don't have the libc man pages installed on 
>Cygwin), I don't see anything that I would expect to need to *open* the 
>file to retrieve.
>
>Way way back in the OP, I mentioned that Interix doesn't have this 
>problem, which would imply a "design flaw" in Cygwin. Maybe (probably) 
>it is a *necessary* design flaw, BUT...

A "necessary" design flaw?  Interesting concept.

>Please note that I'm not asking anyone to do this... given the response 
>I got last time, I don't have any illusions that this will happen short 
>of my doing it myself (at which point I will be derided, and my work 
>will never leave my office). However, I would appreciate any existing 
>knowledge, or even pointers to where to start poking around, that anyone 
>would care to share.

I think that most of the pointers and insight about what Cygwin does with
fstat are all nicely encapsulated in the source code, specifically
fhandler_disk_file.cc and fhandler.cc .

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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