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

automate profiling & reduce memory usage #140

Open
arnaucube opened this issue Aug 8, 2024 · 0 comments
Open

automate profiling & reduce memory usage #140

arnaucube opened this issue Aug 8, 2024 · 0 comments

Comments

@arnaucube
Copy link
Collaborator

I've been trying to use Nova to fold Circom & arkworks circuits in this repo: https://github.com/arnaucube/hash-chain-sonobe
and specially when folding arkworks circuits, the memory usage keeps growing while the prove_step is being called over and over.

I've started to update Sonobe removing a bunch of .clone()s and removed the usage of Vec<_> along the nova.prove_step method in the branch https://github.com/privacy-scaling-explorations/sonobe/tree/reduce-memory-usage, but more work needs to be done on it.

To test it, there is a branch in the hash-chain-sonobe repo that uses the reduce-memory-usage branch of sonobe: https://github.com/arnaucube/hash-chain-sonobe/tree/reduce-memory-usage , since the interfaces have changed in sonobe's branch.

The task of this issue would be:

  1. Automating the usage of profiling tools of the memory usage, so that we can be aware of the concrete improvements (for this time but also for the future)
  2. Reduce memory usage, specially focusing on the .prove_step() method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant