• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
Liar, liar, pants on fire! refreshing plug:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic