ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy Lambert <>
Subject Re: 1.8 Performance Degradation
Date Tue, 02 Mar 2010 00:33:19 GMT
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.



Stefan Bodewig wrote:
> On 2010-03-01, Murray, Mike <> 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
> <>
> Stefan

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

View raw message