I heard that AS boxes and un-boxes values every time arguments are passed into/out of functions.
A. Therefore, would this be faster?
var val = doWork(50,"hello", 2048);
function doWork (param1,param2,param3){
t.text = param2;
return param1+param3;
}
B. Or this?
var val:Number = doWork(50,"hello", 2048);
function doWork (param1:Number,param2:String,param3:Number):Number{
t.text = param2;
return param1+param3;
}