Closed vadcx closed 2 months ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bad bot!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
https://github.com/ComfyFactory/ComfyFactorio/blob/cd2cda7a0e7a92d76180cd41bd2692b21e140fc4/maps/mountain_fortress_v3/charging_station.lua#L76-L81
However the n is low. It is:
O( #dischargedEquip * #nearbyAccumulators )
To charge all equipment from all available accumulators we would need to iterate both at least once. Assuming that fetching nearby accumulator entities is a more expensive operations, I would rewrite it like this: