From: Thomas Coopman Date: 2006-07-11T00:04:29+09:00 Subject: Re: fastest way of looping through directories ------=_Part_10218_8155069.1152543767529 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Yes, I'm on linux! I tried find and glob and there are no real differences. I think I'll stick with Find. Thanks for all the help Thomas On 7/10/06, Yohanes Santoso wrote: > > "Thomas Coopman" writes: > > > I'm looking for the fastest way for looping through directories. > > > > at the moment i'm using Find but when I test this, the first time it > runs > > really slow (like 20 seconds) the second time it runs much much quicker > > Find is about the fastest way. The bottleneck is in the I/O. > There is not much you can do about that beside getting a better > disk subsytem. > > The reason it was faster the second time is because your OS had cached > the information. > > If the list of entries are fixed or do not change much, you can try > saving them in a file, so subsequent runs do not have to traverse > through the directories again. > > YS. > > -- Thomas Coopman Thomas.coopman@gmail.com ------=_Part_10218_8155069.1152543767529--