From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11278 invoked by alias); 21 Jan 2016 15:45:00 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 11263 invoked by uid 89); 21 Jan 2016 15:44:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_00,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=1300, determining, determination, disguised X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 21 Jan 2016 15:44:58 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aMHPr-0001md-6m for cygwin@cygwin.com; Thu, 21 Jan 2016 16:44:55 +0100 Received: from 217.10.52.10 ([217.10.52.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Jan 2016 16:44:55 +0100 Received: from Stromeko by 217.10.52.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Jan 2016 16:44:55 +0100 To: cygwin@cygwin.com From: Achim Gratz Subject: Performance of "ls -F" Date: Thu, 21 Jan 2016 18:10:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00265.txt.bz2 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