I've dug through the post history, but I'm still having trouble understanding exactly what capability snapshots provide.
My question is: Within a single execution of a single binary, given a single isolate and context that has executed some JS, can I snapshot the state and later create a new context from that snapshot? 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. How do snapshots relate to StartupData? (What is StartupData?) What's the difference between SetNativesDataBlob and SetSnapshotDataBlob? mksnapshot appears to enable compiling in a fixed, hard-coded snapshot, which is not what I want. I understand that V8 is not an AOT JS compiler, but some posts seem to indicate that snapshots may be appropriate for my use case which is confusingly inconsistent. - Augusto -- -- 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.
