public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Performance of "ls -F"
@ 2016-01-21 18:10 Achim Gratz
  2016-01-21 18:34 ` William M. (Mike) Miller
  2016-01-21 19:54 ` Bill Smith
  0 siblings, 2 replies; 13+ messages in thread
From: Achim Gratz @ 2016-01-21 18:10 UTC (permalink / raw)
  To: cygwin

I am finding a large performance gap between plain "ls" and "ls -F" in a
directory with many files on a network share (NetApp disguised as NTFS if
that matters).  This has been there for quite a while, I've just now
realized what the reason was (I have "ls -F" as an alias for "ls" in my
interactive shells).  In a directory with 1300 files, a plain "ls" completes
in 0.3s, while "ls -F" requires about 95s.  Determining the file class seems
to require around 70...90ms per file, which I can confirm also for
directories with a lot less files.  What's involved in that determination
that takes such a long time?

Regards,
Achim.


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

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Performance of "ls -F"
@ 2016-01-25 20:08 Lemke, Michael  ST/HZA-ZIC2
  0 siblings, 0 replies; 13+ messages in thread
From: Lemke, Michael  ST/HZA-ZIC2 @ 2016-01-25 20:08 UTC (permalink / raw)
  To: cygwin

I just want to add an observation and stay out of this
conversation otherwise: ls -F is comparably slow on a
network drive here but as noted by someone else in this
thread ls --file-type is fast.  However, the combination
ls --file-type --color is as slow as ls -F here.  Maybe
a hint for you to find out what is going on.


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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-01-25 20:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-21 18:10 Performance of "ls -F" Achim Gratz
2016-01-21 18:34 ` William M. (Mike) Miller
2016-01-21 19:09   ` Achim Gratz
2016-01-21 19:56   ` Bill Smith
2016-01-22 15:09     ` Achim Gratz
2016-01-22 22:19       ` Corinna Vinschen
2016-01-22 23:21         ` Achim Gratz
2016-01-23 19:55           ` Corinna Vinschen
2016-01-25 20:54             ` Achim Gratz
2016-01-25 21:03               ` Corinna Vinschen
2016-01-21 19:54 ` Bill Smith
2016-01-21 21:40   ` Achim Gratz
2016-01-25 20:08 Lemke, Michael  ST/HZA-ZIC2

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).