3 ms·
Replacing switch, which is compile time construct (converts to an if-else statement or a lookup table or a binary search) with an object which is a run time co
by nec4b 7y ago
Replacing switch, which is compile time construct (converts to an if-else statement or a lookup table or a binary search) with an object which is a run time construct (hash table) is pretty inefficient at least in compiled languages.