Fulminazzo / YAGL

Yet Another GUI Library.
0 stars 0 forks source link

ClassEnum #27

Closed Fulminazzo closed 3 months ago

Fulminazzo commented 3 months ago

The ClassEnum class currently uses reflections for many of its methods. Although this is convenient, it causes many slowdowns across the program (seen from running tests). An option would be to create a static cache to store all the information, but this may cause inconsistencies and problems for Bukkit when reloading.

Fulminazzo commented 3 months ago

What could be done, is a class for cache that has the same methods as ClassEnum (valueOf, name...) that stores the found values.

Fulminazzo commented 3 months ago

Closed in 87cafafaef8ae5ef44c5ca9f9a0e59ba58f76467