DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20103>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20103

FileSet horrible performance when dir has huge number of subdirs





------- Additional Comments From [EMAIL PROTECTED]  2003-05-21 20:05 -------

I am just guessing, but it looks like <fileset> is scanning all the 
directories under "dir".

It would be more efficient if it took a lazy-loading approach to scanning.
Only scan the subdirs needed to match regexp patterns,e.g.

In the case of a simple exaple

"**/*.java"

it would still have to scan all the directories. But if only a few 
subdirectories are in the fileset:

"subdir1/subsub1/*.java"
"subdir2/susub2/I*.java"

Then only the subdirectoires should be scanned.

If only explicit files are specified, then no scanning should be done:

"subdir1/subsub1/File1.java"
"subdir2/subsub2/File2.java"

Reply via email to