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

Improve zkp performance #265

Merged
merged 1 commit into from Aug 31, 2022
Merged

Improve zkp performance #265

merged 1 commit into from Aug 31, 2022

Conversation

shkoo
Copy link
Contributor

@shkoo shkoo commented Aug 31, 2022

  • Add reg_count to taps so verify knows how big to allocate structures
  • Change most uses of Vec::new in verify to use Vec::with_capacity to avoid reallocations during filling
  • Avoid duplicating stack during proving
  • Compute mix powers once instead of over and over again

* Add reg_count to taps so verify knows how big to allocate structures
* Change most uses of Vec::new in verify to use Vec::with_capacity to avoid reallocations during filling
* Avoid duplicating stack during proving
* Compute mix powers once instead of over and over again
@shkoo shkoo marked this pull request as ready for review August 31, 2022 18:13
@shkoo shkoo requested a review from flaub August 31, 2022 18:13
@flaub flaub merged commit a4aa78e into main Aug 31, 2022
@flaub flaub deleted the nils/zkp_perf branch August 31, 2022 18:32
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.

None yet

2 participants