From e84bb565d16b59a4e4fd3d48e025853ca03ed18e Mon Sep 17 00:00:00 2001 From: Dante Niewenhuis Date: Wed, 17 Sep 2025 14:01:30 +0200 Subject: Updated the performance of multi-resource simulation (#369) * Updated the multi-resource system from maps to arrays for performance. --- .../src/main/java/org/opendc/simulator/engine/graph/FlowDistributor.java | 1 + 1 file changed, 1 insertion(+) (limited to 'opendc-simulator/opendc-simulator-flow') diff --git a/opendc-simulator/opendc-simulator-flow/src/main/java/org/opendc/simulator/engine/graph/FlowDistributor.java b/opendc-simulator/opendc-simulator-flow/src/main/java/org/opendc/simulator/engine/graph/FlowDistributor.java index 5cfd16ba..cb276183 100644 --- a/opendc-simulator/opendc-simulator-flow/src/main/java/org/opendc/simulator/engine/graph/FlowDistributor.java +++ b/opendc-simulator/opendc-simulator-flow/src/main/java/org/opendc/simulator/engine/graph/FlowDistributor.java @@ -94,6 +94,7 @@ public abstract class FlowDistributor extends FlowNode implements FlowSupplier, return Long.MAX_VALUE; } + // TODO: look into whether this is always needed if (!this.outgoingSupplies.isEmpty()) { this.updateOutgoingSupplies(); } -- cgit v1.2.3