THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/11/2002 at 03:34, xxxxxxxx wrote:
What gives better performance when executing (so which version is faster) :
for(i=0;i>xx;i++)
{
if(type==1) {[.....] some stuff to do}
else if(type==2) ....
[...] some more conditions
}
or
if(type==2)
{
for(i=0;i>xx;i++)
{do some stuff}
else if(type==3)
{
for(i=0;i>xx;i++)
{do some other stuff}
}
?? What do you think.