X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <4A9EA9D5.2070000@bopp.net> Date: Wed, 02 Sep 2009 12:22:29 -0500 From: Jeremy Bopp User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Simple bash script is slow to execute - appears to be time spent starting commands like ls References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 David Tazartes wrote: > System facts: > - My username has a space in it, and the CWD for the script is > "C:\Users\user name\Desktop\another folder" ("another folder" has a space) > aka /cygdrive/c/Users/user name/Desktop/another folder > Observations: > - When using bash -x, most of the time appears to be spent in "cut" and > "mkdir". > - When looking at Task Manager sorting by CPU, I see Windows Explorer > (explorer.exe, NOT Internet Explorer) suddenly popping up at around 10-20% > after every file is processed. This happens even if I have no Explorer > windows open. While I believe the usual forking performance issue is probably the largest factor for your problem, you *are* running an instance of Windows Explorer. It's displaying your desktop which as you indicate above is holding the folder containing your work area. My guess is that you're seeing those usage spikes because of that fact. Try working in a tree which is outside of your desktop, maybe in /tmp, and see if that makes any difference for you. I can't reproduce the slowness you're seeing in general however, even in a directory on the desktop, but then I'm running with XP rather than Vista. -Jeremy -- 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