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

DomainAccumulator allows accumulating a row at once #480

Conversation

spapinistarkware
Copy link
Contributor

@spapinistarkware spapinistarkware commented Mar 15, 2024

This change is Reviewable

This was referenced Mar 15, 2024
Copy link

graphite-app bot commented Mar 15, 2024

Your org has enabled the Graphite merge queue for merging into dev

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

@spapinistarkware spapinistarkware marked this pull request as ready for review March 15, 2024 05:43
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-rename_evalaution.rs_to_accumulaion.rs branch from 3ccd166 to 93e0bb7 Compare March 15, 2024 12:19
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-domainaccumulator_allows_accumulating_a_row_at_once branch from b41c0d0 to fc7d13f Compare March 15, 2024 12:19
@codecov-commenter
Copy link

codecov-commenter commented Mar 15, 2024

Codecov Report

Attention: Patch coverage is 96.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 95.06%. Comparing base (3524e6b) to head (760ccc2).

Files Patch % Lines
src/core/air/accumulation.rs 94.73% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #480      +/-   ##
==========================================
+ Coverage   95.03%   95.06%   +0.02%     
==========================================
  Files          61       61              
  Lines        9123     9130       +7     
  Branches     9123     9130       +7     
==========================================
+ Hits         8670     8679       +9     
+ Misses        396      393       -3     
- Partials       57       58       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@spapinistarkware spapinistarkware force-pushed the spapini/03-15-rename_evalaution.rs_to_accumulaion.rs branch from d10a9f2 to 8a09ec1 Compare March 19, 2024 14:01
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-domainaccumulator_allows_accumulating_a_row_at_once branch from d933282 to d48bcc2 Compare March 19, 2024 14:01
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-rename_evalaution.rs_to_accumulaion.rs branch from 8a09ec1 to adbae30 Compare March 19, 2024 14:26
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-domainaccumulator_allows_accumulating_a_row_at_once branch from d48bcc2 to a5106b1 Compare March 19, 2024 14:26
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-rename_evalaution.rs_to_accumulaion.rs branch from adbae30 to 3ce5d2f Compare March 19, 2024 14:38
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-domainaccumulator_allows_accumulating_a_row_at_once branch from a5106b1 to 383eb39 Compare March 19, 2024 14:38
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-rename_evalaution.rs_to_accumulaion.rs branch from 3ce5d2f to c8e1e19 Compare March 19, 2024 14:48
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-domainaccumulator_allows_accumulating_a_row_at_once branch from 383eb39 to 9ff3956 Compare March 19, 2024 14:48
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-rename_evalaution.rs_to_accumulaion.rs branch from c8e1e19 to 91180ed Compare March 19, 2024 14:53
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-domainaccumulator_allows_accumulating_a_row_at_once branch from 9ff3956 to 84adff0 Compare March 19, 2024 14:53
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-rename_evalaution.rs_to_accumulaion.rs branch from 91180ed to a8e2c16 Compare March 19, 2024 15:22
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-domainaccumulator_allows_accumulating_a_row_at_once branch from 84adff0 to 47f75b0 Compare March 19, 2024 15:22
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-rename_evalaution.rs_to_accumulaion.rs branch from a8e2c16 to 6e91b9c Compare March 21, 2024 09:15
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-domainaccumulator_allows_accumulating_a_row_at_once branch from 47f75b0 to 94653ae Compare March 21, 2024 09:15
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-rename_evalaution.rs_to_accumulaion.rs branch from 6e91b9c to 21b9764 Compare March 21, 2024 10:43
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-domainaccumulator_allows_accumulating_a_row_at_once branch from 94653ae to fea9b26 Compare March 21, 2024 10:43
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-rename_evalaution.rs_to_accumulaion.rs branch from 21b9764 to e207427 Compare March 21, 2024 11:17
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-domainaccumulator_allows_accumulating_a_row_at_once branch from fea9b26 to 83ecff8 Compare March 21, 2024 11:17
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-rename_evalaution.rs_to_accumulaion.rs branch from e207427 to 2bbdee2 Compare March 21, 2024 11:19
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-domainaccumulator_allows_accumulating_a_row_at_once branch from 83ecff8 to 09f6436 Compare March 21, 2024 11:20
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-rename_evalaution.rs_to_accumulaion.rs branch from 2bbdee2 to 69525bb Compare March 21, 2024 11:28
@spapinistarkware spapinistarkware changed the base branch from spapini/03-15-rename_evalaution.rs_to_accumulaion.rs to dev March 21, 2024 14:51
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-domainaccumulator_allows_accumulating_a_row_at_once branch from 09f6436 to 7eaa305 Compare March 21, 2024 14:51
Copy link
Collaborator

@shaharsamocha7 shaharsamocha7 left a comment

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Reviewable status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @spapinistarkware)


src/core/air/accumulation.rs line 107 at r3 (raw file):

            .unwrap_or_else(|e| panic!("invalid log_sizes: {}", e))
            .map(|c| ColumnAccumulator {
                random_coeff_pow: self.random_coeff,

I don't understand this, seems that it always get the same element.
Why not give the ColumnAccumulator the correct pow in advance?

(I thought this change reduces the need of exposing the random coeff from this struct)

Code quote:

random_coeff_pow: self.random_coeff,

src/core/air/accumulation.rs line 112 at r3 (raw file):

        for i in 0..N {
            res[i].random_coeff_pow = self.random_coeff.pow(n_cols_per_size[i].1 as u128);
        }

Don't we want to calculate the powers more efficiently?

Code quote:

        for i in 0..N {
            res[i].random_coeff_pow = self.random_coeff.pow(n_cols_per_size[i].1 as u128);
        }

Copy link
Contributor Author

@spapinistarkware spapinistarkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @shaharsamocha7)


src/core/air/accumulation.rs line 107 at r3 (raw file):

Previously, shaharsamocha7 wrote…

I don't understand this, seems that it always get the same element.
Why not give the ColumnAccumulator the correct pow in advance?

(I thought this change reduces the need of exposing the random coeff from this struct)

Done.


src/core/air/accumulation.rs line 112 at r3 (raw file):

Previously, shaharsamocha7 wrote…

Don't we want to calculate the powers more efficiently?

Done.

@spapinistarkware spapinistarkware force-pushed the spapini/03-15-domainaccumulator_allows_accumulating_a_row_at_once branch from 7eaa305 to 760ccc2 Compare March 24, 2024 12:31
Copy link
Collaborator

@shaharsamocha7 shaharsamocha7 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 2 files at r3, 1 of 1 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @spapinistarkware)

Copy link
Contributor Author

spapinistarkware commented Mar 24, 2024

Merge activity

@spapinistarkware spapinistarkware merged commit 584c52d into dev Mar 24, 2024
10 checks passed
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.

3 participants