3 ms·
It shouldn't if the control flow is actually identical. E.g. note how both the switch- and if-based functions generate the same code using a lookup table here:
by flohofwoe 3y ago
It shouldn't if the control flow is actually identical.
E.g. note how both the switch- and if-based functions generate the same code using a lookup table here:
https://godbolt.org/z/qoT3M7r5G https://godbolt.org/z/qoT3M7r5G