On Thu, Feb 6, 2014 at 4:30 AM, Zhao Cheng <[email protected]> wrote:
> I also notice that ScriptData can be used to precompile script, is the
> ScriptData serializable so I could write it in a file and the load it in
> clients' machines? And is there any benchmark on how much time ScriptData
> could save?

IIRC, the preparser output is basically a dump of the AST.  I think it
will work on another machine provided but only if that machine has the
same endianness.

I benchmarked the impact of pre-parsing for node.js about a year ago
where I pre-parsed src/node.js and the stuff in lib/ in the hope of
reducing start-up time but it made no measurable difference.

If memory serves, Vyacheslav Egorov (that's mraleph) mentioned it's
only good for really big scripts, like Emscripten-generated code.

-- 
-- 
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/groups/opt_out.

Reply via email to