delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/08/11:42:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <C59D5C0A3D3FD21192BA00A0C9DDB6A80E6F32@bemidji>
From: "Oelke, Dan" <doelke AT opticalsolutions DOT com>
To: "'Timothy Reaves'" <treaves AT y11a165 DOT neo DOT rr DOT com>
Cc: cygwin users <cygwin AT sourceware DOT cygnus DOT com>
Subject: RE: Time taken for ls -la --color=yes
Date: Mon, 8 Mar 1999 10:36:35 -0600
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.1960.3)

> >If you add the color or F switches then the CYGWIN1.DLL has to
> >determine the type of file.  It will be opening every regular file
> >listed and reading a line from the file in order to determine the
type
> >of the file.  You can imagine the overhead involved in this.
> 
> No, I guess I can't, as bash under unix does not take this long, and
it would have to do the same thing.

Under Unix with a normal unix filesystem, the filesystem stores
attributes about each file.
With FAT filesystem there are no such attributes stored - cygwin has to
figure them out.
In particular, if a file is executable or not has be to guessed at by
reading 
the first few characters of the file.  So, cygwin has to open each file
to 
determine this which doesn't happen under unix.

Dan


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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