delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/10/15/12:45:27

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "one2001boy AT yahoo DOT com" <one2001boy AT yahoo DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: latest ls.exe version in XP problem
References: <6jKbd.13476$nj DOT 4016 AT newssvr13 DOT news DOT prodigy DOT com> <3qtum01b6ifo4t461j2ma065kl0k39kbfs AT 4ax DOT com>
In-Reply-To: <3qtum01b6ifo4t461j2ma065kl0k39kbfs@4ax.com>
Lines: 29
Message-ID: <3ZSbd.13748$nj.7977@newssvr13.news.prodigy.com>
NNTP-Posting-Host: 69.104.245.224
X-Complaints-To: abuse AT prodigy DOT net
X-Trace: newssvr13.news.prodigy.com 1097857983 ST000 69.104.245.224 (Fri, 15 Oct 2004 12:33:03 EDT)
NNTP-Posting-Date: Fri, 15 Oct 2004 12:33:03 EDT
Organization: SBC http://yahoo.sbc.com
X-UserInfo1: Q[R_PJONEZVSSWLSX@]D]_\@VR]^@B AT MCPWZKB]MPXHJUZ]CDVW[AKK[J\]^HVKHG^EWZHBLO^[\NH_AZFWGN^\DHNVMX_DHHX[FSQKBOTS@@BP^]C AT RHS_AGDDC[AJM_T[GZNRNZAY]GNCPBDYKOLK^_CZFWPGHZIXW AT C[AFKBBQS AT E@DAZ]VDFUNTQQ]FN
Date: Fri, 15 Oct 2004 16:33:03 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Brian Inglis wrote:
> On Fri, 15 Oct 2004 06:42:10 GMT in comp.os.msdos.djgpp,
> "one2001boy AT yahoo DOT com" <one2001boy AT yahoo DOT com> wrote:
> 
> In general, read: http://clio.rice.edu/djgpp/win2k/main.htm
> 
> 
>>Just noticed several issues about ls.exe. Any help is appreciated.
>>
>>For the latest ls.exe under Windows XP, there are three issues.
>>
>>1) under a directory with one thousand files,
>>run command "ls -F" will take 1 minute to start to display the files and 
>>directory. using "ls" has no such long delay. using "dir" has no such a 
>>problem either.
> 
> 
> ls -F has to do a stat call for each name to find out whether it's a
> directory, executable, link, or normal file: this may involve two
> directory lookups per name, and maybe other system calls, before
> sorting and displaying the information. Try dir /o:n for speed
> comparison. 

Under windows, it is really not necessary to check if the file is 
executable, link or normal file. It doesn't make sense. I use ls -F for 
telling if the object is file or directory only.

I think it might be helpful for displaying the file or directory quickly 
if those checkings are turned off.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019