Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Holding references in C# to functions that exist in JS and cleanup

$
0
0
Just to make sure I understand correctly:

If I were to use one V8Runtime to efficiently spawn the needed engines, in my scenario each engine would only be tied to one script and the script would be evaluated only once. Then on the C# side I'd call something similar to the code above: container.Execute(data.DataType, data.Args) concurrently. So in the end, the functions which are contained in the script and hence each engine, would be accessed concurrently. And that is not supported because of the shared runtime, right?

If I have that right and opt to not share a runtime are there performance implications?

Viewing all articles
Browse latest Browse all 2297

Trending Articles