I've been implementing switch statements and am not sure how to decide when to use a jump table and when to just use if/else style branching. Is there some good rule of thumb based on how many values there are or how large their range is?

3:28 PM ยท Dec 6, 2018

2
0
0
Replying to @olsenator4
I think just let legibility/maintainability be your guide.
0
0
0
Replying to @olsenator4
Measure it?
0
0
1