Re: Fast execution of scripts
SpiderPig <[email protected]>
| Newsgroups | gmane.comp.lang.scala |
|---|---|
| Message-ID | <[email protected]> |
But I want to be able to change the script and still have it start up nearly instantly. The default script runner doesn't do that no matter what arguments you pass to it. A solution like nailgun could be interesting if it worked with scala. Nailgun only cuts the start up time of the JVM. It doesn't reduce the compile time for the scala code. It's true that my solution means that the code runs on the same JVM instance and the state of globally accessible objects stays the same between invcocations. And that can pose a problem. But starting up the a new JVM instance normally takes only a fraction of a second. And all the libraries being used are precompiled. So I don't see why the script runner is not able to get the startup time down to a fraction of a second despite the use of a compile server. My example seems to show that a small script can indeed be compiled in less than 200 ms. Combine that with a JVM spin up time of another 200 ms and you should end up with 400 ms, not 2 seconds. -- You received this message because you are subscribed to the Google Groups "scala-language" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.