Re: if statement optimization
- Posted by Spock Oct 28, 2008
- 950 views
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)