Tom's Simple Storage Mod (Fabric)

Tom's Simple Storage Mod (Fabric)

16M Downloads

Implement cache for last used recipe lookup

MissPotato opened this issue ยท 0 comments

commented

https://spark.lucko.me/FNv2m7T9ZT

As seen above bulk crafting is taking literal seconds to complete. In the above example I am crafting a stack of ingots from 9 stacks of nuggets. A lot of modded workbenches implement a cache that checks the last crafted task and if it matches skips over the findFirst method.

While a forge mod, typically I use Fast Suite to solve this for all JSON based recipe lookups. Unfortunately, there isn't a version for fabric. I am pretty certain AE2 has a cache method for this as well, if you wanted to find a fabric example.