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

perf: improve range gate implementation #323

Merged
merged 7 commits into from
Jun 16, 2023
Merged

perf: improve range gate implementation #323

merged 7 commits into from
Jun 16, 2023

Conversation

mrain
Copy link
Contributor

@mrain mrain commented Jun 15, 2023

Description

closes: #322


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (main)
  • Linked to GitHub issue with discussion and accepted design OR have an explanation in the PR that describes this work.
  • Wrote unit tests
  • Updated relevant documentation in the code
  • Added a relevant changelog entry to the Pending section in CHANGELOG.md
  • Re-reviewed Files changed in the GitHub PR explorer

@mrain mrain changed the title Range gate improve perf: improve range gate implementation Jun 15, 2023
Copy link
Contributor

@alxiong alxiong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! can you add a few unit tests on different bit_length lookups?

range check with various bit lengthes.
@mrain
Copy link
Contributor Author

mrain commented Jun 15, 2023

LGTM! can you add a few unit tests on different bit_length lookups?

added in c2c6bdd

Copy link
Contributor

@chancharles92 chancharles92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -318,11 +318,6 @@ impl<F: PrimeField> PlonkCircuit<F> {
E::NUM_LIMBS,
);

// range checking for output c
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment on func header that we don't need to rangecheck a and c.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added in 9345eea

@mrain mrain merged commit 1c10443 into main Jun 16, 2023
3 checks passed
@mrain mrain deleted the range-gate-improve branch June 16, 2023 01:08
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

Successfully merging this pull request may close these issues.

Improve range gate performance on ultra plonk
4 participants