FoodCraft-Reloaded icon indicating copy to clipboard operation
FoodCraft-Reloaded copied to clipboard

Better EnumLoader performance

Open LasmGratel opened this issue 7 years ago • 1 comments

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.

LasmGratel avatar Dec 12 '17 15:12 LasmGratel

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.

LasmGratel avatar Mar 22 '18 16:03 LasmGratel