I\'m not sure which one is better. I need to parse each character of an input string and get a replacing string for the character. For some objects all alphanumeric characte
Hashing is faster as you can directly access the 'encoded string'
for example, If you assume that all characters are '9', so it will have to evaluate 8 if conditions before executing the right statement, each time you process a character.
That's just a worst-case example while using the switch()