The more constants you have, the more efficient it is. It actually makes sense. Loading a value from memory is more expansive than going through some jump instructions (assembly instructions that represents a `if`condition).However, the bigger the switch, the higher the number of jump instructions are. From a certain point, loading from the memory will become more effective.