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]

incredibly slow file listing script on windoze 7 pro 4 core 64 bit


this takes a few minutes on old debian machine, taking much longer
here on same data-
about 19k file about 24Gb total size.
Windoze finally has better perf stuff but still no help- one core at
25 pct all kernel
time disk not exactly busy. All the time is in the "ls" loop not the
find command.
Now obbviously I expect the "ls" per file has to make a bunch of OS calls for
each file but still even with cygwin layer seems a bit much.
Thanks.

$ more tots
foo=""
#ls -al `find -type f| awk '{print \$0}' `  | awk '{tot=tot+\$5; }END{print tot}
'
#ls -al `find -type f `  | awk '{tot=tot+$5; }END{print tot}'
find -type f > xxx
cat xxx | while read
do
ls -al "$REPLY"
done  | awk '{tot=tot+$5; }END{print tot}'

--
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]