Is there a way to create compiled bytecode files from Nashorn, so that
Nashorn can reuse them?
The issue is that I'm working right now on integrating Nashorn into
Scripturian:
http://threecrickets.com/scripturian/
Scripturian is an alternative to JSR-223 that support various
high-concurrency features. One thing it can do is cache source files to
avoid re-parsing or re-compilation. In Rhino, I can create class
bytecode for me that I can store in files and then simply load the next
time the code needs to be accessed. Specifically, Rhino has a interface
named org.mozilla.javascript.GeneratedClassLoader that lets me reload
the bytes.
Is there anything like this in Nashorn? Following the source code
through the Compiler class led me nowhere...