Hi Roland,

I think caching of scripts within a global scope was implemented from the initial JDK8 release. In 8u20 we broadened this to ScriptEngine scope, meaning that multiple global scopes running within the same engine could share compiled scripts.

The cache size is limited to 50 scripts by default, you can set that using the -ccs or --class-cache-size option and disable it all together by setting that option to 0.

Hannes

Am 2016-02-25 um 12:48 schrieb Houtman, Roland:
Dear Devs,

Can someone tell me if compiled scripts are cached and reused when the same 
script-text is compiled again.
Maybe in this version, or which version this does happen?

Kind regards,
Roland


Reply via email to