Pehkui

Pehkui

35M Downloads

[Suggestion]: ScaleCacheUtil#CACHE - Use an Enum instead of a normal class and index by its ordinal

ByThePowerOfScience opened this issue ยท 0 comments

commented

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?