Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Slow Startup Time

 
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic