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


2009/9/2 Larry Adams:
> The problem as I see it is Windows. ?For example, only 10 iterations caused
> over 65k file and registry reads. ?I have attached the output from
> SysInternals Process Explorer for your edification. ?The only fix for this
> is Linux. ?I still use Windows for development and "LOVE" Cygwin. ?But
> 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?
-- 
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


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