Re: if statement optimization

new topic     » goto parent     » topic index » view thread      » older message » newer message
frankied said...

In a tight loop, is there any performance difference betweeen:

if (condition) then 
    return 0 
else 
    return 1 
end if 

and:

if (condition) then 
    return 0 
end if 
return 1 

?

There is also:

return not (condition) 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu