Decrease graph compilation time significantly (#1368)

* Decrease compilation time significantly

* Refactor reorder_ids method to improve performance
This commit is contained in:
Dennis Kobert
2023-08-06 21:36:44 +02:00
committed by GitHub
parent c653fe9579
commit 3262f637d1
13 changed files with 125 additions and 112 deletions

View File

@@ -173,7 +173,7 @@ impl NodeRuntime {
// We assume only one output
assert_eq!(scoped_network.outputs.len(), 1, "Graph with multiple outputs not yet handled");
let c = Compiler {};
let proto_network = c.compile_single(scoped_network, true)?;
let proto_network = c.compile_single(scoped_network)?;
assert_ne!(proto_network.nodes.len(), 0, "No protonodes exist?");
if let Err(e) = self.executor.update(proto_network).await {