Wednesday, 2 December 2015

Which is best to use? If-else or Switch statemet?

 The if-elseif-else sequence tends to be both larger and slower than its counterparts.
Converting the code sample to fit a switch-case construct improves the size, if the values are
dense, and increases the speed of the resultant assembly output.

No comments:

Post a Comment