Replace hashing algorithm and disable debug logging for improved performance

This commit is contained in:
Dennis Kobert
2023-03-09 18:26:38 +01:00
parent ff603f7d80
commit 625ddc23df
10 changed files with 35 additions and 23 deletions

View File

@@ -27,13 +27,13 @@ impl NodeGraphExecutor {
scoped_network.duplicate_outputs(&mut generate_uuid);
scoped_network.remove_dead_nodes();
debug!("Execute document network:\n{scoped_network:#?}");
//debug!("Execute document network:\n{scoped_network:#?}");
// 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)?;
debug!("Execute proto network:\n{proto_network}");
//debug!("Execute proto network:\n{proto_network}");
assert_ne!(proto_network.nodes.len(), 0, "No protonodes exist?");
if let Err(e) = self.executor.update(proto_network) {
error!("Failed to update executor:\n{}", e);