Thanks very much, I have tried the two ways, using CreateCodeCache can 
reduce some time , but still not fast enough In multiple process instances. 
i can't use CreateSnapshotDataBlob ,it looks like snapshot must be a param 
for creating isolate, but my server has too mang scripts to do that)


在 2018年4月26日星期四 UTC+8下午5:29:26,Ben Noordhuis写道:
>
> On Thu, Apr 26, 2018 at 10:46 AM, zhecheng <zheche...@yeah.net 
> <javascript:>> wrote: 
> > i have a javascript script , compile and run cost 300ms if there is only 
> one 
> > process, but if i start 60 processes, create isolate , compile and run 
> it 
> > for the first time separately , it cost 9000ms, what is the reason ? cpu 
> > limit ? i actually notice the ratio of cpu is high. 
> > i just want to run the script imultaneously on server side, this problem 
> > will cause temporary timeout during my service startup ,can you give 
> some 
> > suggestion? 
>
> You can precompile scripts with 
> `v8::ScriptCompiler::CreateCodeCache()` or 
> `v8::V8::CreateSnapshotDataBlob()`. 
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to