3 ms·
But he did: The switch statement was optimized to a jump table, while the if statements became a long sequence of compares.
by ramchip 16y ago
But he did: The switch statement was optimized to a jump table, while the if statements became a long sequence of compares.