ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Performance of fileset containing a large number of files
Date Thu, 18 Aug 2011 09:17:31 GMT
On 2011-08-18, Julien LF wrote:

> That is, I'm using ant to build a tar archive of a directory
> containing 100,000+ files, and the operation is much slower than when
> simply doing it on the command-line (42 minutes vs 5 minutes).

> From what I understand most of the time is spent building the fileset
> before actually writing to the destination file. Is there any way to
> improve this performance?

Depends on which version of Ant you use.  Unless it is 1.8.2 upgrading
could help as we've improved scanning perfromance with almost every

Another thing to look at is the way you describe your include/exclude
patterns, if there are any, that is.  Patterns that exclude
whole trees from the root like foo/bar/** can be used to improve
performance significantly as Ant can skip the whole tree (which it
didn't do properly before 1.8.2 BTW), for example.

If there are no patterns at all (default excludes?) or they cannot be
used to shortcut walking the directory tree (**/*.foo) than I don't have
any other idea what you could do.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message