阅读背景:

预编译v8脚本以用于多个隔离

来源:互联网 

I have implemented a 'require'-like function using embedded v8 that loads a JavaScript file and executes it, but because my program has multiple threads, and as such each thread has its own isolate, I am having to load and compile the file separately in each thread that specifies the same source. I am wanting to, if possible, somehow cache any compiled script so that if another thread (using another isolate) happens to want the same file, I can utilize some sort of precompiled format, and just give it the script to run, instead of having to separately compile it inside of each isolate that needs the same file.I have implemented a 'require'-like function us




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: