-
Notifications
You must be signed in to change notification settings - Fork 111
perf(levm): remove duplicate subgroup check in ecpairing precompile #4960
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR removes a redundant subgroup membership check for G2 points in the ecpairing precompile. The check was unnecessary because compute_batch already validates subgroup membership for G2 points.
Key Changes:
- Removed duplicate
is_in_subgroup()validation for G2 points in the pairing check function
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Lines of code reportTotal lines added: Detailed view |
Benchmark Results ComparisonNo significant difference was registered for any benchmark run. Detailed ResultsBenchmark Results: BubbleSort
Benchmark Results: ERC20Approval
Benchmark Results: ERC20Mint
Benchmark Results: ERC20Transfer
Benchmark Results: Factorial
Benchmark Results: FactorialRecursive
Benchmark Results: Fibonacci
Benchmark Results: FibonacciRecursive
Benchmark Results: ManyHashes
Benchmark Results: MstoreBench
Benchmark Results: Push
Benchmark Results: SstoreBench_no_opt
|
This reverts commit 11d7177.
Benchmark Block Execution Results Comparison Against Main
|
Motivation
We are checking that ecpairing G2 inputs are in the subgroup before calling
compute_batch, which already checks this.Description
This PR removes the duplicate subgroup check.
Closes #4939