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



On Wednesday, August 27, 2003, at 10:18 AM, email@hidden wrote:

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?

Conventional optimization wisdom applies: find out where the bottleneck is, then put your effort there. In this case, I'd be surprised if ant is the bottleneck, rather than the compilation process. On the other hand, the bottleneck is, remarkably often, not where you'd think it was. Measurement is the only way to be sure.

I'm actually not compiling anything with ant during the development phase. My EJB classes contain xdoclet tags which are then used to create the interfaces for my beans and the deployment descriptors for JBoss. Ant/xdoclet just takes a long time to chug through the sources and generate the necessary files. It seems to me that a native application to do this should be quite a bite faster. I'm seeing anywhere from 40 seconds to 1.5 minutes depending upon how many classes have changed since the last run. A not insignificant part of that is probably just the JVM starting up.
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.


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.