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

BaseFold: all open functions accept Arc instead of DenseMultilinearExtension #563

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

yczhangsjtu
Copy link
Collaborator

@yczhangsjtu yczhangsjtu commented Nov 6, 2024

Extracting from #294

Waiting for #554 to merge.

Currently, only simple_batch_open is requiring Arc for polys in API while other open functions are accepting DenseMultilinearExtension. This PR unifies them.

@yczhangsjtu yczhangsjtu marked this pull request as draft November 6, 2024 08:28
Copy link
Collaborator

@matthiasgoergens matthiasgoergens left a comment

Choose a reason for hiding this comment

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

The unification looks like a reasonable thing to do.

Though I wonder if it's possible to break the PR into even more manageable chunks? (It's good you broke this one out at all, it's already pretty beefy on its own!)

@@ -143,10 +144,14 @@ fn bench_batch_commit_open_verify_goldilocks<Pcs: PolynomialCommitmentScheme<E>>
let values: Vec<E> = evals
.iter()
.map(Evaluation::value)
.map(|x| *x)
.copied()
Copy link
Collaborator

Choose a reason for hiding this comment

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

That's an unrelated improvement, isn't it? (It's small enough that we can leave it in this PR, however.)

@@ -182,7 +187,7 @@ fn bench_batch_commit_open_verify_goldilocks<Pcs: PolynomialCommitmentScheme<E>>
let values: Vec<E> = evals
.iter()
.map(Evaluation::value)
.map(|x| *x)
.copied()
.collect::<Vec<E>>();
Copy link
Collaborator

Choose a reason for hiding this comment

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

(Not part of your PR: if we specify the type in line 187 (on the let), we don't need to also specify it here, too.)

Base automatically changed from feat/basefold-refactor-extract-1 to master November 28, 2024 06:06
@yczhangsjtu yczhangsjtu marked this pull request as ready for review November 28, 2024 06:28
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.

2 participants