Calling `engine.eval()` on a small script is takin...
# scripting
c
Calling
engine.eval()
on a small script is taking over six seconds, consistently. This looks crazy to me, is there any way to at least turn on some incremental compilation from the engine?
i
I’m pretty sure this has nothing to do with the incremental compilation. The all delays are quite likely due to the compiler warm-up times. There are ways to share the compiler in some sense, e.g. using the daemon (there is a sample implementation of JSR223 that uses this approach), but I’m not sure it fits the scenario you’re aiming at.
c
Yes, I was mentioning incremental compilation because evaluating the same script twice in a row should be instant the second time
i
The compiled scripts caching is a part of the new scripting infrastructure, I’m working on now. Hopefully it could help in such scenarios.
c
Looking forward to it