Skip to content

Commit

Permalink
Merge pull request #2403 from o1-labs/dw/avoid-clone-ivc
Browse files Browse the repository at this point in the history
IVC: remove some unecessary clone
  • Loading branch information
volhovm authored Jul 9, 2024
2 parents b435f6b + a71d4fa commit dbcfacc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ivc/tests/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,13 @@ pub fn heavy_test_simple_add() {
assert_eq!(s.len(), domain_size);
});

let ivc_fixed_selectors_evals_d1: Vec<Evaluations<Fp, R2D<Fp>>> = ivc_fixed_selectors
.clone()
let ivc_fixed_selectors_evals_d1: Vec<Evaluations<Fp, R2D<Fp>>> = (&ivc_fixed_selectors)
.into_par_iter()
.map(|w| Evaluations::from_vec_and_domain(w, domain.d1))
.map(|w| Evaluations::from_vec_and_domain(w.to_vec(), domain.d1))
.collect();

let structure = GenericVecStructure(
ivc_fixed_selectors_evals_d1
.clone()
.iter()
.map(|x| x.evals.clone())
.collect(),
Expand Down

0 comments on commit dbcfacc

Please sign in to comment.