2 ms·
>> I intuitively associate switch with a jmp table Me too, but I try to keep the set of values dense and use a mask (op & 0xff) to help the compiler know it do
by phkahler 4y ago
>> I intuitively associate switch with a jmp table
Me too, but I try to keep the set of values dense and use a mask (op & 0xff) to help the compiler know it doesn't need to do bounds checking. Verify these changes help of course.