Hi yosy,
V8 caching support comes in the form of new overloads for the
After that you could use the cache to accelerate recompilation:
You can download an API reference here.
Good luck!
V8 caching support comes in the form of new overloads for the
V8ScriptEngine.Compile
and V8Runtime.Compile
methods. For example, to compile a script and produce a code cache, you'd do something like this:byte[] cacheBytes; var script = engine.Compile(code, V8CacheKind.Code, out cacheBytes);
bool cacheAccepted; var script = engine.Compile(code, V8CacheKind.Code, cacheBytes, out cacheAccepted);
Good luck!