barretenberg icon indicating copy to clipboard operation
barretenberg copied to clipboard

Sumcheck loop ordering

Open lucasxia01 opened this issue 1 year ago • 1 comments

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.

lucasxia01 avatar Sep 21 '23 14:09 lucasxia01