Possible Duplicate:
What loop is faster, while or for
I see in three.js that there is the common code feature in many languages:
for ( var i = 0, l = something.length; i < l; i++ ) {
do some stuff over i
}
but I read that in javascript performance can be better by using:
var i = something.length;
while(i--){
do some stuff over i
}
Does this actually improve any performance significantly? is there a reason to prefer one over the other?