public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Paul Maier" <svn-user@web.de>
To: <cygwin@cygwin.com>
Subject: How to make "ls" as quick as a Windows "dir"?
Date: Sun, 06 Feb 2011 21:38:00 -0000	[thread overview]
Message-ID: <99C327BE35E54B81B97E7DCAF53941A2@sulzer.de> (raw)

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

             reply	other threads:[~2011-02-06 21:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-06 21:38 Paul Maier [this message]
2011-02-07  3:10 ` Larry Hall (Cygwin)
2011-02-08 22:26   ` AW: " Paul Maier
2011-02-08 23:18     ` Larry Hall (Cygwin)
2011-02-09 11:31       ` AW: " Paul Maier
2011-02-09 16:12         ` Larry Hall (Cygwin)
2011-02-13 23:40 Paul Maier
2011-02-14  3:15 ` Larry Hall (Cygwin)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=99C327BE35E54B81B97E7DCAF53941A2@sulzer.de \
    --to=svn-user@web.de \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).