• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Slow Startup Time

 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic