-
Notifications
You must be signed in to change notification settings - Fork 317
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
Refactor append_tx_effects_for_blob
to avoid duplicated computation
#11058
Comments
Did you address this in #11213 or is there more that can be done to dedupe some code? |
I don't know if I'd say that PR closed this issue but at some point we'll hit diminishing returns. We can definitely wrap the constraining logic in The main potential optimization I can see is that it's probably worth making an unconstrained helper for this function (and potentially removing the usage of boundedVec?). aztec-packages/noir-projects/noir-protocol-circuits/crates/rollup-lib/src/components.nr Lines 524 to 535 in be382bc
|
Yeah, that function costs a ton of gates. I'm not sure whether we still even need it (see comment |
Yes I think we can just remove it! I think in the past we had that because we had 63 updates from the avm and then we always put the fee write in position 63. I think now everything should come left aligned, and if not, it's a bug elsewhere! |
Refactors the `append_tx_effects_for_blob` function for #11058: - Removes expensive public data update gathering function - Combines the two `get_effects` functions into one to avoid doubling code Should probably be merged after #11686, since that would be easier to merge into this PR rather than vice versa.
I think we can close this now. The remaining duplicated computation is just encoding the prefixes which would be harming readability for negligible benefit. |
See #11037 (comment)
The text was updated successfully, but these errors were encountered: