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

feat: refactor append_tx_effects_for_blob #11805

Merged
merged 6 commits into from
Feb 13, 2025
Merged

Conversation

MirandaWood
Copy link
Contributor

@MirandaWood MirandaWood commented Feb 7, 2025

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.

@MirandaWood MirandaWood marked this pull request as ready for review February 11, 2025 10:45
Copy link
Contributor

github-actions bot commented Feb 11, 2025

Changes to circuit sizes

Generated at commit: 6b66a9704202c5396c1ab8f4e1b95a51879c88d7, compared to commit: 438c905e710b54cc194da9be2da561c9a8c27c28

🧾 Summary (100% most significant diffs)

Program ACIR opcodes (+/-) % Circuit size (+/-) %
rollup_base_private -2 ✅ -0.00% -2 ✅ -0.00%
rollup_base_public -22,155 ✅ -25.73% -75,073 ✅ -6.42%

Full diff report 👇
Program ACIR opcodes (+/-) % Circuit size (+/-) %
rollup_base_private 137,828 (-2) -0.00% 1,637,357 (-2) -0.00%
rollup_base_public 63,937 (-22,155) -25.73% 1,094,488 (-75,073) -6.42%

@MirandaWood MirandaWood self-assigned this Feb 11, 2025
Copy link
Member

@TomAFrench TomAFrench left a comment

Choose a reason for hiding this comment

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

I think this harms readability more than it helps tbh. I would prefer to just remove get_all_update_requests_for_tx_effects and avoid the other changes the but I'm gonna defer to circuits team on this as it's not my codebase.

@MirandaWood
Copy link
Contributor Author

I think this harms readability more than it helps tbh. I would prefer to just remove get_all_update_requests_for_tx_effects and avoid the other changes the but I'm gonna defer to circuits team on this as it's not my codebase.

Ah ok, I probably misunderstood the linked issue. I assumed 'repeated code' was also referring to the main fn and helper having essentially the same logic, but with either a check or assign. I can remove this, no worries! Will also get a review from the team

This comment was marked as outdated.

@MirandaWood
Copy link
Contributor Author

I think this harms readability more than it helps tbh. I would prefer to just remove get_all_update_requests_for_tx_effects and avoid the other changes the but I'm gonna defer to circuits team on this as it's not my codebase.

Just FYI have reverted the other changes, lmk on the issue if anything else should be done to this function!

@MirandaWood MirandaWood merged commit e5a055b into master Feb 13, 2025
52 checks passed
@MirandaWood MirandaWood deleted the mw/refactor-blob-append branch February 13, 2025 16:43
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.

2 participants