ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murray, Mike" <...@ptc.com>
Subject RE: 1.8 Performance Degradation
Date Wed, 03 Mar 2010 17:57:48 GMT
Thanks for the quick response.  I have no use of "exec" tasks in my test
scenario.

VisualVM showed that AntClassLoader.getCertificates() was sucking up all
the time.  If I revert AntClassLoader.defineClassFromData() to what it
was in 1.7.1, it resolves the performance problem.

Thanks, Mike

http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/an
t/AntClassLoader.java?r1=796649&r2=796702

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org] 
Sent: Monday, March 01, 2010 10:22 AM
To: user@ant.apache.org
Subject: Re: 1.8 Performance Degradation

On 2010-03-01, Murray, Mike <mbm@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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message