mardi 2 juin 2015

Which is faster: (i == 0) or (i < 1)

I recently heard that:

//This:
val1 * 0.5;
//Is faster than this:
val1 / 2;

So I wonder if there is anything else like that, and so I ask:

var val1:uint = 0;
//Is This:
if (val1 == 0)
//faster than this?:
if (val1 < 1) 

Aucun commentaire:

Enregistrer un commentaire