Let's say I have some code and I want to execute it, you could:

(a) create a v8::Script, compile it and then run it,

OR,

(b) send the string to an active v8::Context and call eval(code) from 
inside.

I remember hearing that eval does not optimize code, but in my purely 
empirical tests both scenarios seem to run code at about the same speed.

But still the question is, are there differences in performance between the 
two approaches? What other things should I expect to be different?


-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to