On Sat, May 5, 2012 at 8:38 AM, Yair <[email protected]> wrote: > 1) Does v8 have its own caching for script-compilations or does it re- > run the compilation each time a compilation is requested ? > 2) If I do need to use my own cache, could the compilations be used > across Isolates ?
Script::New() _might_ be of assistance: /** * Compiles the specified script using the specified file name * object (typically a string) as the script's origin. * * \param source Script source code. * \param file_name file name object (typically a string) to be used * as the script's origin. * \return Compiled script object (context independent; when run it * will use the currently entered context). */ See also Script::Compile(). AFAIK the only diff is that New() is context-independent and Compile() binds to a given context at compile-time. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
