-
Notifications
You must be signed in to change notification settings - Fork 130
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
Analyze and select optimizations to port from C++ port of Halo2 by kroma-network/tachyon #293
Comments
I've checked the optimizations & here is my opinion on those. Overall, I believe 1 ~ 2 optimizations could be ported with a bit of work. 1. Lazy IFFT
2. Batch Normalize
3. Optimizing parallelization code 4. Optimizing MSM One note is that @mratsim mentioned this WNAF method. 5. Saving heap allocation 6. Benchmarks for each circuit |
Updated report about
One thing to discuss is the |
BTW there's a very nice video on MSM optization tricks: |
Solved by #342 |
I recently saw a message in the Halo2 Ecosystem Discord server where @dongchangYoo and @ashjeong shared a HackMD document link with a list of optimisations found when porting the Halo2 codebase to C++.
The optimizations are claimed to speedup arround a 10% the implementation (So we need to ensure we don't loose too much time, as a 10% is not a priority considering other low-hanging fruits we are already aware of.
This is the link: https://github.com/kroma-network/tachyon/blob/main/tachyon/zk/plonk/halo2/optimizations.md
cc: @ed255 @han0110 @kilic @duguorong009 @davidnevadoc
The text was updated successfully, but these errors were encountered: