3 ms·
Once you assign the values in the C enum, a switch statement is "opaque". Just inefficient; a jump table optimization is impossible on the values. Speed is sac
by kazinator 3y ago
Once you assign the values in the C enum, a switch statement is "opaque".
Just inefficient; a jump table optimization is impossible on the values. Speed is sacrificed for security. A jump table itself could be row-hammered to jump where the attacker wants!