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.
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