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 release. 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. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org