ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant
Date Fri, 04 Aug 2000 10:52:51 GMT
This patch can have different effects depending on your setup, ranging
from a slight performance hit to a significant boost.

The old directory scanner would traverse the whole directory tree even
if it knew it was following a "dead" arc - somebody could call
getExcludedFiles of getNotIncludedFiles and then this information
would be needed.

No task in the Ant distribution ever calls those methods BTW.

In small directory trees this won't do much, but in a test setup like

./docs                     <----- contains 35 dirs with ~ 650 files
./de                       <----- contains  > 500 source files in ~ 180
                                  directories together with ~ 2000
                                  additional files
./tests                    <----- ~ 180 source files in 50 directories

<javac srcdir=".">
  <include name="de/**/*.java" />

would take 19 seconds to find that all source files were up to date in
the old setup and 7 seconds in the new version on my machine.


View raw message