in reply to Filesystem: How to grab subset of directory structure
this will be slightly faster:
aryFiles = grep /\.xml$/i, readdir MYFILEHANDLE;
But my guess is that on your FS putting 20,000 files in one directory is what is making it slow. Probably you're better off making a couple of subdirectories; about 500 files each in them might be a lot faster. - This all depends on your filesystem so YMMV.
Joost.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Filesystem: How to grab subset of directory structure
by P0w3rK!d (Pilgrim) on Jun 25, 2003 at 18:48 UTC |