summaryrefslogtreecommitdiff
path: root/opendc-simulator/opendc-simulator-flow/src/main/java
diff options
context:
space:
mode:
authorDante Niewenhuis <d.niewenhuis@hotmail.com>2025-09-17 14:01:30 +0200
committerGitHub <noreply@github.com>2025-09-17 14:01:30 +0200
commite84bb565d16b59a4e4fd3d48e025853ca03ed18e (patch)
treeae274f16d1e72ba3893a147c12e3bbe2cb2ee084 /opendc-simulator/opendc-simulator-flow/src/main/java
parent13a3f376fec17d5dcb60b635414c64a6d6ea3b13 (diff)
Updated the performance of multi-resource simulation (#369)
* Updated the multi-resource system from maps to arrays for performance.
Diffstat (limited to 'opendc-simulator/opendc-simulator-flow/src/main/java')
-rw-r--r--opendc-simulator/opendc-simulator-flow/src/main/java/org/opendc/simulator/engine/graph/FlowDistributor.java1
1 files changed, 1 insertions, 0 deletions
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();
}