Skip to content

Sumcheck loop ordering #728

Closed
Closed

Description

@lucasxia01

Brought up in a discussion with Zac over potential slowdowns in Sumcheck.

Currently we iterate over each polynomial and for each one, we call add_scaled, which loops over the same batched_poly_unshifted and batched_poly_to_be_shifted memory over and over again. Instead, we should consider switching the order of the loops so that we iterate over the polynomial indices in the outer loop and over the polynomials in the inner loop.

Activity

  1. added
    enhancement
    and removed
    enhancement
    on Sep 21, 2023
  2. ledwards2225 commented on Apr 11, 2024

    @ledwards2225

    @lucasxia01 Is this still relevant? If so, can you clarify what part of the code this refers to?

  3. lucasxia01 commented on Mar 4, 2025

    @lucasxia01
    Author

    I don't remember exactly what this is referring to. Should've attached it to a line in the code. Maybe @zac-williamson would know.

  4. ledwards2225 commented on Jul 3, 2025

    @ledwards2225

    I assume this is referring to the actual polynomial folding in PG. Zac has this PR which could be picked up if we want to handle this.

  5. lucasxia01 commented on Jul 8, 2025

    @lucasxia01
    Author

    No, its related to sumcheck going row by row instead of column by column.

  6. ledwards2225 commented on Mar 3, 2026

    @ledwards2225

    I cant make any sense of how sumcheck could be executed column by column :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions