This is the mail archive of the
cygwin
mailing list for the Cygwin project.
incredibly slow file listing script on windoze 7 pro 4 core 64 bit
- From: mike marchywka <marchywka at gmail dot com>
- To: cygwin <cygwin at cygwin dot com>
- Date: Tue, 7 Sep 2010 11:05:06 -0500
- Subject: 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