mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-04 20:03:39 +00:00
Avoid unnecessary vector cloning in multiopen.
This commit is contained in:
parent
588de0e024
commit
3955da435c
1 changed files with 4 additions and 4 deletions
|
|
@ -62,11 +62,11 @@ impl<C: CurveAffine> Proof<C> {
|
|||
|
||||
// Each commitment corresponds to evaluations at a set of points.
|
||||
// For each set, we collapse each commitment's evals pointwise.
|
||||
for (commitment, commitment_data) in commitment_map {
|
||||
for (commitment, commitment_data) in commitment_map.into_iter() {
|
||||
accumulate(
|
||||
commitment_data.set_index, // set_idx,
|
||||
*commitment, // commitment,
|
||||
commitment_data.evals.to_vec(), // evals
|
||||
commitment_data.set_index, // set_idx,
|
||||
*commitment, // commitment,
|
||||
commitment_data.evals, // evals
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue