I wouldn't say it's faster, either.
Modern compilers are definitely able to transform
switch with consecutive constants into a linear jump table. The only thing I could think of is that they need to conservatively insert a condition for the
default label, but even this could be optimized using non-portable techniques like
__assume(false).