Re: Filetype identification in gmc

On Wed, 4 Aug 1999, Mark R. Bowyer wrote:

> >From: (Matthias Warkus)
> >The problem here is that it doesn't scale, if you've got a directory
> >with 10,000 files, you need to do 10,000 calls to file, which spawns
> >10,000 processes one after another and does 10,000 open() calls.
> This isn't a very good arguement.  Why can't it just do a single "file *" in 
> each directory, and then parse the output?  Make sure you don't over-run any 

You would still have to make 10,000 open() calls though.  not sure what
the speed on that would be.

Christopher Rogers

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]