if statement optimization
- Posted by frankied Oct 28, 2008
- 1013 views
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
?
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
?