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

Optimize trace generation #1558

Open
Al-Kindi-0 opened this issue Oct 31, 2024 · 2 comments
Open

Optimize trace generation #1558

Al-Kindi-0 opened this issue Oct 31, 2024 · 2 comments

Comments

@Al-Kindi-0
Copy link
Collaborator

Al-Kindi-0 commented Oct 31, 2024

Currently, trace generation, both main and auxiliary, takes roughly about 10% of the total proving time. We should benchmark and profile this step in order to get an idea of the bottlenecks.
Witness generation is an inherently sequential process but there are still strategies that one could explore in order to improve things. One such approach is multi-stage building of the main trace through several passes, where for example the first pass could fill the minimal amount of trace values needed in order to be able to fill the hasher chiplet in parallel.

@plafer
Copy link
Contributor

plafer commented Oct 31, 2024

Additional context: #1533 (comment)

@bobbinth
Copy link
Contributor

I think a good target here would be to get main trace generation to run at at least 50 MHz on something like an M1. And a stretch goal could be 100 MHz. I think it should be double but would require quite a bit of investigation and potential refactoring.

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

No branches or pull requests

3 participants