ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20103] - FileSet horrible performance when dir has huge number of subdirs
Date Wed, 21 May 2003 20:05:16 GMT
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 e17x-o9j5@spamex.com  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"

Mime
View raw message