My build performance measurements suggest that, since my ant build is structured as a multipass process with iteration over the projects at the top level, we're spending a surprisingly large chunk of our build time re-reading the project build scripts and all their includes (reloading these in every pass's ant/antcall invocations).
Is there a reasonable way to tell Ant to retain all the parsed XML in memory until we're done? Or do I need to look at restructuring to combine some of those passes, to eliminate this overhead manually?
FWIW, I'm using Ant 1.8 right now. If 1.9 adds a solution for this, that might be the argument I need to justify an upgrade.