ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45665] DirectoryScanner Performance
Date Mon, 01 Sep 2008 08:38:01 GMT

--- Comment #2 from Gilles Scokart <>  2008-09-01 01:38:01 PST ---
Yes, the problem described is fixed.  The patterns are now parsed only once per

I have also seen some further possible enhancements, but I'm not sure they will
bring a noticeable enhancement :
1. When multiple include/exclude patterns are used, the filename is also
tokenized multiple times (once per pattern)
2. The tokenizePathAsArray implementation loop twice on the String (pattern or
filename) using charAt method.  Maybe using indexOf, and/or using a Tokenizer
class instead of an array could provide faster results.

But the major thing is now fixed.  If the 2 previous point give noticebale
enhancement, then I will re-open this issue.

I gain +/- 2% of my total build time which is at 80% an ivy build (not using
the directory Scanner).  A build that do a lot of directory scanning could gain
up to 10% of processing time.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message