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 multiexp #106

Open
osuketh opened this issue May 9, 2019 · 1 comment
Open

Optimize multiexp #106

osuketh opened this issue May 9, 2019 · 1 comment

Comments

@osuketh
Copy link
Member

osuketh commented May 9, 2019

The multiexp function is currently based on the bellman lib.

let result = multiexp(
&pool,
(Arc::new(exponent), 0),
FullDensity,
Arc::new(scalar)
).wait().unwrap();

We might optimize it more based on zexe's one which is based on rayon and avoiding use of trait objects.

In addition, we can remove the duplicative collect(), the parameters are into iterator from vec before passed the mutiexp function.

.collect::<Vec<_>>();

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

1 participant