We all know that the code:
var ssum = function(a,b) { return a+b; }
is executing faster than
eval("var esum = function(a,b) { return a+b; } ");
for many reasons.
what I want to know is that if a function which was created by eval-ing a string will perform worse than a if it had not been.
For the example above it means: will esum(1,1) slower than ssum(1,1) ?
I would like an answer which tells me if this depends on the browser implementation (and if so why) and if the performance depends on the variables referenced by the eval-ed function.
Many Thanks, Lx