Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.6-beta-1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Those two links point out how it might be possible to significantly reduce the groovy startup time:
http://archive.jruby.codehaus.org/dev/481A4453.3060307%40sun.com
This is my first participation to an open source project, so if anything is unclear or missing don't hesitate to tell me.
To fix the slow startup problem I'm running a Groovy Shell as server so the loading is only done once. This trick divides by about ten the time needed to start a script on my config.
There is still problems, mainly concerning handling exceptions as by default server exceptions are send to the client which make the error stack unreadable.
There is 3 files :
Once the server is started a groovy script can be executed just by setting the shebang line to grsh path.
By default the script adds the jars contained in the script file path to the classpath.
data sends to the server follow the format:
/script/path
scriptName
numberOfParams
param1
paramn
The scripts have only been tested on a ubuntu 9.10 64bits