FoodCraft-Reloaded
FoodCraft-Reloaded copied to clipboard
Better EnumLoader performance
Currently, our EnumLoader
has a O(n logn) performance, it is too worse to register such extreme items.
We should have less Map#values() eached and compress the query time.
Unfortunately, multi-threaded parallelStream()
is unusable in Minecraft loading logics, so it would be impossible to speed up with multi-threading feature.
However, caching IItemColor
or other registerable objects are also effective to reduce memory usages.