How to share compiled Value object in Graal

srinivasan karthickpdy at
Tue Oct 16 08:57:50 UTC 2018

I am experimenting with graal in a distributed environment and I want to
process JS scripts from JVM.  The problem is the JS scripts are getting
compiled in different machines and thus the first few requests are taking a
lot of time. Is there any way to serialize the compiled PolyglotValue
object(say its a JS function) and share it through a cache it so that we
can reduce the compiling of the script to once instead of it compiling the
same script in different hosts?  Any other approach to solve this is also

More information about the graal-dev mailing list