delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/25/14:27:56

X-Spam-Check-By: sourceware.org
Message-ID: <453FABD3.4070407@wi.rr.com>
Date: Wed, 25 Oct 2006 13:24:19 -0500
From: Joey Officer <jofficer AT wi DOT rr DOT com>
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cygwin out of sync with version?
References: <453F74AC DOT 4060304 AT wi DOT rr DOT com> <453F9465 DOT EE37B4B7 AT dessent DOT net>
In-Reply-To: <453F9465.EE37B4B7@dessent.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Well whether it was due to disk caching or the modification of the 
script the following were my results, thanks for the tip!

modified version:
time ./findme.bash 10.65.118.
real    21m38.537s
user    11m57.334s
sys     7m33.675s

original version:
time ./findme.bash 10.65.118.
real    22m0.749s
user    12m2.923s
sys     7m48.806s

Brian Dessent wrote:
> Joey Officer wrote:
>
>   
>>         for i in $( ls *.gz ); do
>>     
>
> This needlessly forks a subshell process and a /bin/ls process for no
> apparent reason.  For better performance and readability just let the
> shell do the globbing:
>
> for i in *.gz; do
>
> Brian
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>   

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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