Skip to content

Commit

Permalink
fixup - reserve space for results.
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniupop committed Sep 12, 2024
1 parent af4621c commit 9b108ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fhevm-engine/executor/src/dfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl<'a> DFGraph<'a> {
}

pub fn get_results(&mut self) -> Result<Vec<CompressedCiphertext>, SyncComputeError> {
let mut res = vec![];
let mut res = Vec::with_capacity(self.graph.node_count());
for index in 0..self.graph.node_count() {
let node = self.graph.node_weight_mut(NodeIndex::new(index)).unwrap();
if let Some(imc) = &node.result {
Expand Down

0 comments on commit 9b108ab

Please sign in to comment.