X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 	tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4A9ED2C5.1070306@comcast.net>
References: <E1Miupq-0000A7-Kk@elasmtp-kukur.atl.sa.earthlink.net> 	 <4A9EC733.7080700@cygwin.com> <4A9ED2C5.1070306@comcast.net>
Date: Thu, 3 Sep 2009 10:34:25 +0200
Message-ID: <6910a60909030134n37957d27j7e94d556a5044374@mail.gmail.com>
Subject: Re: Simple bash script is slow to execute - appears to be time spent  	starting commands like ls
From: Reini Urban <rurban@x-ray.at>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

2009/9/2 Larry Adams:
> The problem as I see it is Windows. =A0For example, only 10 iterations ca=
used
> over 65k file and registry reads. =A0I have attached the output from
> SysInternals Process Explorer for your edification. =A0The only fix for t=
his
> is Linux. =A0I still use Windows for development and "LOVE" Cygwin. =A0But
> Windows can't be fixed.

The Windows filesystems (FAT, NTFS) are notoriously slow with a large
number of files in a dir. 1000- 5000 files seems to be a limit for stat().
access() is also much slower if you have inherited ACL's or large ACL lists

Does it run significantly faster with less then say 500 files?
--=20
Reini Urban
http://phpwiki.org/           http://murbreak.at/

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

