K
Kourosh
I have a big loop that checks the value of a checkbox several times
(1000+ times)
I'm just wondering, would it be any more efficient to save the value of
the checkbox outside the loop and the read that variable inside the
loop instead?
ie, I have this
for (var i=0;...)
doStuff (form1.checkbox1.checked);
versus
var chk = form1.checkbox1.checked;
for (var i=0;...)
doStuff (chk);
(1000+ times)
I'm just wondering, would it be any more efficient to save the value of
the checkbox outside the loop and the read that variable inside the
loop instead?
ie, I have this
for (var i=0;...)
doStuff (form1.checkbox1.checked);
versus
var chk = form1.checkbox1.checked;
for (var i=0;...)
doStuff (chk);