On Wed, Apr 8, 2015 at 3:28 PM, Yang Guo <[email protected]> wrote:
> On Wednesday, April 8, 2015 at 2:16:37 PM UTC+2, Ben Noordhuis wrote:
>> On Wed, Apr 8, 2015 at 12:18 PM, Augusto Roman <[email protected]> wrote:
>> > For example, imagine a server that should execute one of N JS functions
>> > with
>> > per-request parameters.  I'd like to snapshot each of the loaded JS
>> > functions and (for each request selecting a JS func and specifying
>> > parameters) create a new, clean context from the appropriate snapshot
>> > and
>> > execute the func with the parameters.
>>
>> I don't think that's going to work.  The snapshot is a per-isolate
>> property, not per-context.
>
> This is not entirely correct. The snapshot consists of two parts. The first
> one is to create the isolate. The second part is to initialize each context.
> By providing a snapshot, both creating an isolate and creating a context can
> be sped up

I interpreted Augusto's question as: Can I have an isolate with
contexts C1 and C2, where C1 and C2 are created from different
snapshots?  That doesn't seem possible from reading the source code.
But if it is possible, that's very interesting and I would like to
know more. :-)

-- 
-- 
v8-users mailing list
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to