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

Revert logup without is_first #818

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

shaharsamocha7
Copy link
Collaborator

@shaharsamocha7 shaharsamocha7 commented Sep 3, 2024

This change is Reviewable

@shaharsamocha7 shaharsamocha7 marked this pull request as ready for review September 3, 2024 15:57
@codecov-commenter
Copy link

codecov-commenter commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.73%. Comparing base (1ee6a70) to head (a3a9330).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #818      +/-   ##
==========================================
- Coverage   92.76%   92.73%   -0.03%     
==========================================
  Files          89       89              
  Lines       12041    12033       -8     
  Branches    12041    12033       -8     
==========================================
- Hits        11170    11159      -11     
- Misses        764      767       +3     
  Partials      107      107              

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

@shaharsamocha7 shaharsamocha7 force-pushed the 09-03-Revert_logup_without_is_first branch from 1d55732 to 6272714 Compare September 17, 2024 12:18
@shaharsamocha7 shaharsamocha7 requested review from andrewmilson and removed request for spapinistarkware September 18, 2024 10:54
@shaharsamocha7 shaharsamocha7 mentioned this pull request Sep 18, 2024
Copy link
Contributor

@andrewmilson andrewmilson 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 8 files reviewed, 1 unresolved discussion (waiting on @Alon-Ti and @shaharsamocha7)


crates/prover/src/constraint_framework/logup.rs line 71 at r3 (raw file):

        // Fix `prev_row_cumsum` by subtracting `claimed_sum` if this is the first row.
        let fixed_prev_row_cumsum = prev_row_cumsum - self.is_first * self.claimed_sum;
        let diff = cur_cumsum - fixed_prev_row_cumsum - self.prev_col_cumsum;

Isn't it more efficient how it was before?

Code quote:

        // Fix `prev_row_cumsum` by subtracting `claimed_sum` if this is the first row.
        let fixed_prev_row_cumsum = prev_row_cumsum - self.is_first * self.claimed_sum;
        let diff = cur_cumsum - fixed_prev_row_cumsum - self.prev_col_cumsum;

Copy link
Collaborator Author

@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.

Reviewable status: 0 of 8 files reviewed, 1 unresolved discussion (waiting on @Alon-Ti and @andrewmilson)


crates/prover/src/constraint_framework/logup.rs line 71 at r3 (raw file):

Previously, andrewmilson (Andrew Milson) wrote…

Isn't it more efficient how it was before?

It was (by a bit), but I wanted to add the is_first column for the padding feature and wanted those to use the same mechanism

Copy link
Contributor

@Alon-Ti Alon-Ti left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 4 of 7 files at r1, 4 of 4 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @andrewmilson)

Copy link
Contributor

@andrewmilson andrewmilson left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @shaharsamocha7)

@shaharsamocha7 shaharsamocha7 merged commit e9c6ba2 into dev Sep 24, 2024
14 of 16 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.

4 participants