www.delorie.com/archives/browse.cgi | search |
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 <jeremy AT bopp DOT net> |
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: | <E1MitCo-0004Gx-Qn AT elasmtp-scoter DOT atl DOT sa DOT earthlink DOT net> |
In-Reply-To: | <E1MitCo-0004Gx-Qn@elasmtp-scoter.atl.sa.earthlink.net> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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: <snip> > - 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 <snip> > 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |