Hi,

Is empty functions in lined whenever the function is know? Example:

function do_nothing() { }

//somewhere later in the code:
var cb = do_nothing;
cb(null, "Will this call be inlined/optimized away?");

Will V8 actually call the function, even if it does nothing? I wonder 
because I want to know if it is smarter to create a do_nothing() function 
which will be reused over and over again (but not as obvious) or each time 
create an empty function { } directly in place and let the V8 more easily 
optimize away the call.

Thanks in advance!



-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to