I know inserters need to check every slot of a chest when adding/removing which makes large chests lower performing.
Do they still check slots that were blocked off with the red X ?
In other words, if I block off a large part of a big chest (like a warehouse) that are known to have bad performance because of the increased number of slot checks, does it reduce the performance impact?
Chest performance question
-
- Smart Inserter
- Posts: 1161
- Joined: Sat Mar 17, 2018 1:20 pm
- Contact:
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Chest performance question
Quick fact: Inserters can take out of red slots just fine, thus the question is only relevant for input.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
-
- Smart Inserter
- Posts: 1161
- Joined: Sat Mar 17, 2018 1:20 pm
- Contact:
Re: Chest performance question
Good point, so chances are that it still checks all the slots. Bummer.eradicator wrote: ↑Sun Oct 07, 2018 4:38 pmQuick fact: Inserters can take out of red slots just fine, thus the question is only relevant for input.
Re: Chest performance question
A good solution for high capacity chests would be single item chests. Only one stack, but unlimited quantity. Or, if you want a little more flexibility, a small number of slots with very high max count number.
Koub - Please consider English is not my native language.
-
- Smart Inserter
- Posts: 1161
- Joined: Sat Mar 17, 2018 1:20 pm
- Contact:
Re: Chest performance question
Yep, I already submitted that in the suggestions forum.
Heck, if done right then chest code could even maintain the current *VISUAL* representation of slots as we have now, but really implement it as only one slot per type of item stored, where the size of the slot/stack adjusts as items are added. Then you get the best of both worlds. One item = single slot of huge capacity, few items = few slots of big capacity until reaching the same capacity as the visual representation, a different item for each slot = the same as now.
But although it is likely to be eventually implemented, there are so many competing enhancements that it will probably take until hell freezes over before it happens. So I was trying to find an alternative to use in the meantime.
My guess is that the option probably doesn't even exist in the mod API or mods like the various chest/Warehousing ones would have already done it.