Use switch-case for both conversions (`key-to-int` and `int-to-key`) when the size of the enum is 10 or less, and use hash tables for both when the size is larger than 10. Switch-case for small enums (less memory usage) and hash tables for larger enums (faster lookups) #415
Use switch-case for both conversions (key-to-int and int-to-key) when the size of the enum is 10 or less, and use hash tables for both when the size is larger than 10. Switch-case for small enums (less memory usage) and hash tables for larger enums (faster lookups)
Use switch-case for both conversions (
key-to-int
andint-to-key
) when the size of the enum is 10 or less, and use hash tables for both when the size is larger than 10. Switch-case for small enums (less memory usage) and hash tables for larger enums (faster lookups)