Hello Stefan,

I was wondering whether some code in the Redirector class could not play a part in the performance of attrib.

I have seen that Redirector is used by Attrib because it is based on ExecOn.

Looks like there are more occurences of synchronized in Redirector in the current code base compared to 1.7.x

If I understand well, <exec/> does not use a redirector unless you explicitly request one.

Regards,

Antoine

Stefan Bodewig wrote:
On 2010-03-01, Murray, Mike <m...@ptc.com> wrote:

Has anyone else noticed a degradation with 1.8.0?

Yes, for any <exec> type of task on Windows (this includes, for example,
<attrib>) that used to take way less than a second.

Currently each such <exec> takes at least a second (give or take a few
millis) so if you are using a lot of little <exec>s this will sum up.

The reason behind this is that Ant 1.7.1's logic could make processes
hang on Windows and the revised logic involves timed joins to simulate
async reads.  We may get through with making the sleep interval a little
bit smaller in future versions - or we may find a better fix for
<https://issues.apache.org/bugzilla/show_bug.cgi?id=5003>

Stefan



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to