Skip to content

Commit

Permalink
Remove print messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jimouris committed Oct 24, 2023
1 parent a29e0c1 commit 40264af
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,8 @@ where
self.frontier = self.prev_frontier.clone();
}

if self.frontier.is_empty() {
println!("Frontier is empty!!");
} else {
let level = self.frontier[0].path.len();
debug_assert!(level < self.depth);
println!("Level {}", level);
}
let level = self.frontier[0].path.len();
debug_assert!(level < self.depth);

let next_frontier = self
.frontier
Expand All @@ -196,8 +190,6 @@ where
})
.collect::<Vec<TreeNode<T>>>();

println!("next_frontier.len() {}", next_frontier.len());

// These are summed evaluations y for different prefixes.
let cnt_values = next_frontier
.par_iter()
Expand Down Expand Up @@ -294,7 +286,6 @@ where
.collect::<Vec<_>>();

debug_assert_eq!(key_proofs.len(), key_checks.len());
println!("key_proofs.len() {}", key_proofs.len());

let combined_hashes = key_proofs
.par_iter()
Expand Down Expand Up @@ -336,12 +327,8 @@ where
}
}

println!("self.frontier.len() {}", self.frontier.len());

self.prev_frontier = self.frontier.clone();
self.frontier = next_frontier;
println!("prev_frontier.len() {}", self.prev_frontier.len());
println!("self.frontier.len() {}", self.frontier.len());

(cnt_values, mtree_roots, mtree_indices)
}
Expand Down Expand Up @@ -387,19 +374,15 @@ where
pub fn tree_prune(&mut self, alive_vals: &[bool]) {
assert_eq!(alive_vals.len(), self.frontier.len());

println!("PRUNE: self.frontier.len() {}", self.frontier.len());
// Remove from back to front to preserve indices
for i in (0..alive_vals.len()).rev() {
if !alive_vals[i] {
self.frontier.remove(i);
}
}
println!("after PRUNE: self.frontier.len() {}", self.frontier.len());
}

pub fn keep_values(threshold: u64, cnt_values_0: &[T], cnt_values_1: &[T]) -> Vec<bool> {
println!("threshold: {:?}", threshold);

cnt_values_0
.par_iter()
.zip(cnt_values_1.par_iter())
Expand Down

0 comments on commit 40264af

Please sign in to comment.