| 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
Sheriff
Joined: Jul 11, 2001
Posts: 15040
|
|
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.
|
My Blog | DZone Articles
|
 |
 |
|
|
subject: Slow Startup Time
|
|
|