Skip to content

chore(bb): decrease bytecode size#22659

Merged
Maddiaa0 merged 1 commit into
merge-train/barretenbergfrom
md/decrease-bytecode-size
Apr 20, 2026
Merged

chore(bb): decrease bytecode size#22659
Maddiaa0 merged 1 commit into
merge-train/barretenbergfrom
md/decrease-bytecode-size

Conversation

@Maddiaa0

@Maddiaa0 Maddiaa0 commented Apr 20, 2026

Copy link
Copy Markdown
Member

Makes relationlib external, further decreasing bytecode size

@Maddiaa0 Maddiaa0 force-pushed the md/decrease-bytecode-size branch from 05452f0 to 56fdff5 Compare April 20, 2026 11:59

Maddiaa0 commented Apr 20, 2026

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Maddiaa0 Maddiaa0 requested a review from ledwards2225 April 20, 2026 12:00
@Maddiaa0 Maddiaa0 changed the title chore: decrease bytecode size chore(bb): decrease bytecode size Apr 20, 2026
@Maddiaa0 Maddiaa0 enabled auto-merge (squash) April 20, 2026 20:59
@Maddiaa0 Maddiaa0 merged commit 25dab27 into merge-train/barretenberg Apr 20, 2026
29 of 30 checks passed
@Maddiaa0 Maddiaa0 deleted the md/decrease-bytecode-size branch April 20, 2026 21:03
dipkakwani pushed a commit to dipkakwani/aztec-packages that referenced this pull request Apr 22, 2026
BEGIN_COMMIT_OVERRIDE
chore(bb): decrease bytecode size (AztecProtocol#22659)
END_COMMIT_OVERRIDE
rangozd pushed a commit to rangozd/aztec-packages that referenced this pull request May 16, 2026
…Protocol#23168)

## Summary

Companion to AztecProtocol#23146
(merge-train/barretenberg), recreated against `next`.

`barretenberg/sol/bootstrap.sh::build_sol` runs `forge fmt` before
`forge build`. PR AztecProtocol#22659 (now in `next` via merge-train/fairies) trimmed
unused imports from `test/utils/Debug.sol`; once trimmed, the multi-line
import block was short enough that `forge fmt` collapses it to a single
line. That rewrites the file mid-CI and trips `ci3/cache_content_hash`
with `ERROR: Noticed changes to rebuild patterns during CI run`,
disabling cache hits for every downstream `*-tests` target — as seen in
http://ci.aztec-labs.com/1778494208886637.

This PR puts `Debug.sol` directly into the forge-fmt-stable form
(single-line import). After rebase, this is the only diff against
`next`.

## Verification

```bash
cd barretenberg/sol
forge fmt --check    # clean
forge fmt            # no changes
```

Full analysis:
https://gist.github.com/AztecBot/86bb7e59c1a9998f77dd1bc51dd9319d
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.

3 participants