File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Groovy and the fly likes Groovy performance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Groovy performance" Watch "Groovy performance" New topic
Author

Groovy performance

Jeremy Wilson
Ranch Hand

Joined: Feb 18, 2003
Posts: 166
What is the best way to speed up groovy processing in general. I was wondering if there was a way to compile groovy code into java code and run the byte code with the JVM. New to groovy and not sure the best or any route to take in that manner.


Jeremy Wilson
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by Jeremy Wilson:
What is the best way to speed up groovy processing in general. I was wondering if there was a way to compile groovy code into java code and run the byte code with the JVM. New to groovy and not sure the best or any route to take in that manner.


Groovy is always compile down to byte code. Groovy is Java and groovy executes on the JVM. Execution will seem a bit faster if you do the compiling (check groovyc) but if you execute groovy scripts, they still execute as byte code. Really though this is just startup time. Once the script is running, its going to be the same.


GenRocket - Experts at Building Test Data
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Groovy performance