The ArrayMap implementation in this class is very costly when run so many times, and is contributing a not-insignificant amount of time to the server. Since the caching order is determined at compile-time, consider using an enum or a trimmed Reference2IntMap to store the index of that scale type?
What is your suggestion?
The ArrayMap implementation in this class is very costly when run so many times, and is contributing a not-insignificant amount of time to the server. Since the caching order is determined at compile-time, consider using an enum or a trimmed Reference2IntMap to store the index of that scale type?