jQuery in Action, 3rd edition
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 Head First Android this week in the Android 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: 15302
    
    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
 
jQuery in Action, 3rd edition
 
subject: Groovy performance
 
It's not a secret anymore!