Does GroovyShell use compiled scripts?

I plan on embedding groovy in my application and GroovyShell programmatically - I will be running the same script multiple times with different parameters.

Does GroovyShell use a compiled script, or is it just a stateless interpreter?

+2


source to share


1 answer


I don't think it caches scripts. Take a look at the code. If comments are not true, scripts are not cached. Line 511 .



+1


source







All Articles