3 ms·
Switch was invented because it allows to replace several ifs and gotos with a precomputed static jump table, an optimization trick.
by EVa5I7bHFq9mnYK 4y ago
Switch was invented because it allows to replace several ifs and gotos with a precomputed static jump table, an optimization trick.