Simple Storage Network

Simple Storage Network

61M Downloads

Idea to reduce crafting lag

Bananacody opened this issue · 0 comments

commented

When crafting an item from the storage interface/crafting remote, is it possible to make the storage network check if the inventory searched to find the ingredients is connected to a filtered link cable and the item in the filter matches or not the item searched? It could make the retrieval 54× faster.

As the guide says, crafting items from a large storage takes quite some time and considering my experimentations max crafting lag is ~7 seconds every 100 chests (mean lag ≈ 3.5s/100chests).

To my understanding, it depends on the number of non-empty slots searched before finding the ingredients for the first item, and the total time spent is the sum of the time taken for every item. All search steps are repeated from A to Z for every single ingredient.
The problem is that it searches into all 54 slots of every double chest, even for those filtered to allow only 1 item that is not even the one searched.

I know that for regular (not filtered) link cables all of this does not apply and every single slot must be checked. Filtered link cables could prevent this inefficiency. But I'm no programmer, does my idea make sense?

Thanks for the amazing mod anyways. It's indispensable!