Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: revamp zero prove function #793

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

atanmarko
Copy link
Member

@atanmarko atanmarko commented Nov 12, 2024

Resolves #627
Resolves #399
Resolves #403

Segmentation and task dispatch logic has been changed to handle proving of the individual segments of one batch on different workers. Aggregation is performed after the segments of one batch are proven (not waiting of segments of all the batches to be completed). Segments are generated sequentially and consumed immediately.

@atanmarko atanmarko self-assigned this Nov 12, 2024
@github-actions github-actions bot added the crate: zero_bin Anything related to the zero-bin subcrates. label Nov 12, 2024
@atanmarko atanmarko marked this pull request as ready for review November 12, 2024 14:03
@atanmarko atanmarko added this to the Performance Tuning milestone Nov 12, 2024
Copy link
Collaborator

@Nashtare Nashtare left a comment

Choose a reason for hiding this comment

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

Overall looks good, but I'd still like to run some quick benchmarks myself to make sure it works as expected. Will report back.

zero/src/prover.rs Outdated Show resolved Hide resolved
zero/src/prover.rs Outdated Show resolved Hide resolved
zero/src/prover.rs Outdated Show resolved Hide resolved
zero/src/prover.rs Outdated Show resolved Hide resolved
@Nashtare
Copy link
Collaborator

FYI I'm getting a ~5% improvement over a small sequence (3 blocks, 600 txns).

@atanmarko atanmarko marked this pull request as draft November 12, 2024 19:08
@atanmarko atanmarko marked this pull request as ready for review November 12, 2024 19:59
@atanmarko
Copy link
Member Author

@atanmarko atanmarko force-pushed the feat/optimize-prove-task-dispatch branch from 94d1474 to 86d619a Compare November 13, 2024 18:31
Copy link
Contributor

@0xaatif 0xaatif left a comment

Choose a reason for hiding this comment

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

nits

zero/src/prover.rs Outdated Show resolved Hide resolved
zero/src/prover.rs Show resolved Hide resolved
zero/src/prover.rs Outdated Show resolved Hide resolved
zero/src/prover.rs Show resolved Hide resolved
zero/src/prover.rs Outdated Show resolved Hide resolved
zero/src/prover.rs Show resolved Hide resolved
zero/src/prover.rs Show resolved Hide resolved
zero/src/prover.rs Outdated Show resolved Hide resolved
zero/src/prover.rs Show resolved Hide resolved
zero/src/prover.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@LindaGuiga LindaGuiga left a comment

Choose a reason for hiding this comment

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

I am by no means an expert, but it looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate: zero_bin Anything related to the zero-bin subcrates.
Projects
Status: Ready to Review
4 participants