Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiling ant to a native binary



Assuming you've already done the profiling and have determined that Ant is the bottleneck (not javac or some other tool that Ant invokes), recompile Ant after making the following change in Project.fireMessageLoggedEvent():

loggingMessage = true;
- for (int i = 0; i < listeners.size(); i++) {
+ int size = listeners.size();
+ for (int i = 0; i < size; i++) {
BuildListener listener = (BuildListener) listeners.elementAt(i);

Depending on the number of targets in your build, that may speed things up by 15% or more (my builds went from 1:45 to 1:30 after making that change). The fix will be in Ant 1.6.


Steve


On Wednesday, August 27, 2003, at 12:31 AM, Matthew Hixson wrote:

Was just wondering if anyone had tried compiling ant to a native binary for MacOS X using gcj. I use ant extensively in EJB development and would love to speed things up on my 550Mhz Titanium. Anyone on this list done that before? And if so, do you see much of a speedup?
Thanks,
-M@
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >compiling ant to a native binary (From: Matthew Hixson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.