Skip to content

perf(common): Parallelize polynomial generation via spare_capacity#186

Merged
Bisht13 merged 1 commit into
mainfrom
px/parallelise-zk-utils
Sep 11, 2025
Merged

perf(common): Parallelize polynomial generation via spare_capacity#186
Bisht13 merged 1 commit into
mainfrom
px/parallelise-zk-utils

Conversation

@Bisht13
Copy link
Copy Markdown
Collaborator

@Bisht13 Bisht13 commented Sep 11, 2025

Addressing #182 (comment)

@Bisht13 Bisht13 requested a review from xrvdg September 11, 2025 11:23
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Sep 11, 2025

CodSpeed WallTime Performance Report

Merging #186 will not alter performance

Comparing px/parallelise-zk-utils (0897fe9) with main (b6aff25)

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

Summary

✅ 35 untouched

@Bisht13 Bisht13 merged commit df62989 into main Sep 11, 2025
4 of 5 checks passed
@Bisht13 Bisht13 deleted the px/parallelise-zk-utils branch September 11, 2025 14:30
let spare = elements.spare_capacity_mut();

// Fill the uninitialized memory in parallel using chunked approach
spare.par_chunks_mut(CHUNK_SIZE).for_each(|chunk| {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

map_init is Rayon's way of dealing with this pattern. It removes the need for manually defining a chunk size and let Rayon's planner handle it.

dcbuild3r pushed a commit that referenced this pull request May 16, 2026
perf(common): Parallelize polynomial generation via spare_capacity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants