wood burning stoves 2.0*
The moose likes Groovy and the fly likes Slow Startup Time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Slow Startup Time" Watch "Slow Startup Time" New topic
Author

Slow Startup Time

Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Groovy is a nice language. I like it more than Python, but the startup time for Groovy is terrible. Even to do "Hello World", it can take 2-3 seconds. This makes Groovy unusable for scripting language. I know the problem is more on the JVM rather than Groovy itself. Do you think OpenJDK 7 will solve this issue, e.g. the Project Jigsaw (Java Modularization).

I guess for the time being I'll stick to Python for simple scripting in my Linux box.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

I'm assuming you are talking about executing groovy scripts with the groovy command. This actually has more to do with the script calling java, then reading and parsing the groovy script and yes, it can take a small chunk of time to get things rolling. I'm curious why you think this is a problem though. Is it just too inefficient for the tasks you are doing? I've personally not been in a situation where the startup speed was really a problem, that is why I ask.

As to your question about OpenJDK (Java 7) being better. I have no idea. Sorry.


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Slow Startup Time