Skip to content

Commit

Permalink
fix: remove cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Jul 24, 2024
1 parent e09916f commit 134cbe9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion evm_arithmetization/src/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ impl<'a> Iterator for SegmentDataIterator<'a> {
let cur_and_next_data = generate_next_segment::<F>(
self.max_cpu_len_log,
self.inputs,
self.partial_next_data.take(),
self.partial_next_data.clone(),
);

if cur_and_next_data.is_some() {
Expand Down
4 changes: 2 additions & 2 deletions zero_bin/common/src/prover_state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,11 @@ impl ProverStateManager {
match self.persistence {
CircuitPersistence::None | CircuitPersistence::Disk(TableLoadStrategy::Monolithic) => {
info!("using monolithic circuit {:?}", self);
self.segment_proof_monolithic(generation_inputs.clone(), &mut segment_data)
self.segment_proof_monolithic(generation_inputs, &mut segment_data)
}
CircuitPersistence::Disk(TableLoadStrategy::OnDemand) => {
info!("using on demand circuit {:?}", self);
self.segment_proof_on_demand(generation_inputs.clone(), &mut segment_data)
self.segment_proof_on_demand(generation_inputs, &mut segment_data)
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions zero_bin/prover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ impl BlockProverInput {
Directive::map(IndexedStream::from(chunk.into_iter()), &seg_ops)
.fold(&agg_ops)
.run(runtime)
.map(move |e| {
e.map(|p| proof_gen::proof_types::TxnAggregatableProof::from(p))
})
.map(move |e| e.map(proof_gen::proof_types::TxnAggregatableProof::from))
.await,
);
}
Expand Down

0 comments on commit 134cbe9

Please sign in to comment.