This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Simple bash script is slow to execute - appears to be time spent starting commands like ls


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]