Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- [\#1039](https://github.com/arkworks-rs/algebra/pull/1039) (`ark-ff-asm`) Remove unused dead spill buffer path.
- [\#1044](https://github.com/arkworks-rs/algebra/pull/1044), [\#1084](https://github.com/arkworks-rs/algebra/pull/1084), [\#1088](https://github.com/arkworks-rs/algebra/pull/1088) Add implementation for small field with native integer types
- [\#1061](https://github.com/arkworks-rs/algebra/pull/1061) (`ark-poly`) Reduce allocations in `DenseMultilinearExtension::{concat, fix_variables, evaluate}`.
- [\#1112](https://github.com/arkworks-rs/algebra/pull/1112) (`ark-ec`) Fix rayon::ThreadPoolBuilder panicking in wasm32 when parallel feature is enabled

### Breaking changes

Expand Down
5 changes: 3 additions & 2 deletions ec/src/scalar_mul/variable_base/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,14 +542,15 @@ fn msm_bigint_wnaf<V: VariableBaseMSM>(
cfg_chunks!(bases, chunk_size)
.zip(cfg_chunks!(scalars, chunk_size))
.map(|(bases, scalars)| {
#[cfg(feature = "parallel")]
// wasm32 can't spawn OS threads
#[cfg(all(feature = "parallel", not(target_arch = "wasm32")))]
let result = rayon::ThreadPoolBuilder::new()
.num_threads(THREADS_PER_CHUNK.min(rayon::current_num_threads()))
.build()
.unwrap()
.install(|| msm_bigint_wnaf_parallel::<V>(bases, scalars));

#[cfg(not(feature = "parallel"))]
#[cfg(any(not(feature = "parallel"), target_arch = "wasm32"))]
let result = msm_bigint_wnaf_parallel::<V>(bases, scalars);

result
Expand Down
Loading