> Seems to me that using a switch over another structure for performance at the expense of readability or maintainability
But is not more readable or even more maintainable.
Plus there is absolutely no optimization involved, it's just another way of expressing it.