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]

How to make "ls" as quick as a Windows "dir"?


Hello,

for my cygwin installation (cygwin-1.7.7-1, downloaded 2010-11-02, on a Windows XP SP 3),
the time for a "ls -l" to complete is much slower than the time for a "cmd /C dir",
although similar information gets displayed.

Does anybody know a setting, maybe a flag to "ls", to make the ls as quick as the Windows dir?


On a local drive, both, ls and Windows dir, are quite quick. The difference comes up,
when working on a slow network drive (Q:).

I took these times:


Example 1: Windows dir completes in only 13.3 seconds 
-----------------------------------------------------

/cygdrive/c/Dokumente und Einstellungen/test2/Desktop/cy>time cmd /C dir 'Q:\Angebot'
 Datenträger in Laufwerk Q: ist Data
 Volumeseriennummer: XXX

 Verzeichnis von Q:\Angebot

04.02.2011  21.10    <DIR>          .
04.02.2011  21.10    <DIR>          ..
03.02.2011  14.29           775.168 AnXXX
03.02.2011  13.50           231.936 EAXXX
28.01.2011  10.11            60.928 PrXXX
               3 Datei(en)      1.068.032 Bytes
               2 Verzeichnis(se), 880.856.702.976 Bytes frei
0.015u 0.015s 0:13.33 0.1%      0+0k 0+0io 1219pf+0w



Example 2: cygwin ls takes 53.9 seconds
---------------------------------------
For the same drive and same directory, Cygwin's ls takes 53.9 seconds,
that's 4 times as much than the Windows dir:

/cygdrive/c/Dokumente und Einstellungen/test2/Desktop/cy>time ls -l /cygdrive/q/Angebot/
insgesamt 816
---------- 1 ???????? mkgroup 775168  3. Feb 14:29 AnXXX
---------- 1 ???????? mkgroup 231936  3. Feb 13:50 EAXXX
---------- 1 ???????? mkgroup  60928 28. Jan 10:11 PrXXX
0.030u 0.077s 0:53.91 0.1%      0+0k 0+0io 2026pf+0w


Does anybody have an idea?

Thanks
Paul


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