-
Notifications
You must be signed in to change notification settings - Fork 107
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
Cache milagro g1 pubkeys #811
Conversation
Benchmark
|
bba6dc6
to
21ba6dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Going through the companion PRs now
parachain/pallets/ethereum-beacon-client/src/benchmarking/mod.rs
Outdated
Show resolved
Hide resolved
parachain/pallets/ethereum-beacon-client/src/benchmarking/mod.rs
Outdated
Show resolved
Hide resolved
parachain/pallets/ethereum-beacon-client/src/benchmarking/mod.rs
Outdated
Show resolved
Hide resolved
In recent commit I've added the optimization about Benchmark also shows that the milagro fast_aggregate_verify_pre_aggregated consumes almost all of the weight(>90%) so is the major bottleneck now. |
Ah, too bad. Let's keep the optimization though. It does shave off some |
e72b394
to
ae8a983
Compare
e8540d5
to
4e92feb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks better. Though I see you are returning Error instead of DispatchError from utility functions, which is unusual.
Is there a reason for this style?
No special, just change to DispatchError as suggest
…ron/cache-milagro-g1-pubkeys
@doubledup For this PR to work we need to upgrade rust toolchain to |
Nope, I tried this, and we first need to update the nix flake lock --update-input rust-overlay cc @doubledup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, approved! lets finally merge this in. First run this though to get the newer rust working:
nix flake lock --update-input rust-overlay
for SNO-356 and PRs accompanied
Snowfork/incubator-milagro-crypto-rust#2
Snowfork/milagro_bls#2
Snowfork/cumulus#19