X-Recipient: archive-cygwin AT delorie DOT 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: <4A9EC733 DOT 7080700 AT cygwin DOT com> <4A9ED2C5 DOT 1070306 AT comcast DOT 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 To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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