delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/03/15/11:02:43

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Date: Wed, 15 Mar 2000 18:55:44 +0300
From: Egor Duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.029) S/N A0F2A05A
Reply-To: Egor Duda <deo AT logos-m DOT ru>
Organization: DEO
Message-ID: <2788.000315@logos-m.ru>
To: Chris Faylor <cygwin-developers AT sourceware DOT cygnus DOT com>
CC: cygdev <cygwin-developers AT sourceware DOT cygnus DOT com>
Subject: Re[2]: Cygwin performance (was [ANN] PW32 the...)
References: <20000315091124 DOT I19524 AT cygnus DOT com>
Mime-Version: 1.0

Hi!

Mar 15 2000, Chris Faylor cgf AT cygnus DOT com wrote:

>>No matter of the possible speed up, I don't like this solution
>>because of...
>>
>>> note: you have to recompile your application to utilize "stat_lite"
>>> function.
>>
>>... that result.

CF> I think that Egor also provided a CYGWIN environment variable setting
CF> method, too.

no.

>>Ah, one hint: This wouldn't change anything when ntsec is OFF. But
>>in that case neither get_file_owner() nor get_file_group() nor
>>get_file_attribute() could slowing down things...

CF> I think that the big slowdown happens in counting the files in
CF> a directory to update the "nlinks" field in stat (or whatever
CF> it's called).

ah, yes. nlinks too.

CF> I went over the file handling code a year or so ago and attempted
CF> to eliminate multiple hits to the disk as much as possible.  I'm
CF> sure that more can be done here, though.

CF> Maybe we should just detect when a file or directory is remote
CF> and not do some of the more expensive operations.

CF> I would like the ability to be able to set attributes on an executable
CF> something like:

CF>         chattr --stat-lite ls.exe

well, perhaps that's a way. but anyway, i think that application author or
porter should be able to "set" this flag on per-call-basis. if in some
function he don't need inode, nlinks, but only st_size and st_atime he
can give "stat" a hint.

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19


- Raw text -


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