Does GroovyShell cache the compiled scripts?
-
19-09-2019 - |
Question
I plan to embed groovy in my application and use GroovyShell programatically - I will run the same script several times with different parameters.
Does GroovyShell caches the compiled script or does it work only as a stateless interpreter?
Solution
I don't think it caches the scripts. Take a look at the code. Unless the comments are wrong, the scripts are not cached. Line 511.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow