Skip to content

Commit

Permalink
parallelize bases to affine
Browse files Browse the repository at this point in the history
Co-authored-by: Han <[email protected]>
  • Loading branch information
kilic and han0110 authored Jan 24, 2024
1 parent c1caa64 commit 42f8a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ pub fn best_multiexp<C: CurveAffine>(coeffs: &[C::Scalar], bases: &[C]) -> C::Cu
// coeffs to byte representation
let coeffs: Vec<_> = coeffs.par_iter().map(|a| a.to_repr()).collect();
// copy bases into `Affine` to skip in on curve check for every access
let bases_local: Vec<_> = bases.iter().map(Affine::from).collect();
let bases_local: Vec<_> = bases.par_iter().map(Affine::from).collect();

// number of windows
let number_of_windows = C::Scalar::NUM_BITS as usize / c + 1;
Expand Down

0 comments on commit 42f8a36

Please sign in to comment.