Skip to content

chore(serialisation): Stop generating bincode serde code for C++#10928

Merged
TomAFrench merged 30 commits intomasterfrom
af/cpp-no-bincode
Jan 8, 2026
Merged

chore(serialisation): Stop generating bincode serde code for C++#10928
TomAFrench merged 30 commits intomasterfrom
af/cpp-no-bincode

Conversation

@aakoshh
Copy link
Copy Markdown
Contributor

@aakoshh aakoshh commented Dec 16, 2025

Description

Problem

@ludamad asked:

some point soon we could use pointers on how to only have the msgpack compact serialization code emitted for now (more primarily, no bincode)

Summary

Skips generating bincode format for C++. I left the struct based msgpack in place, since it just adds a few lines of code, without any extra dependency, but if we really really wanted to only support msgpack-compact in Barretenberg, then the code to modify would be generate_struct.

Additional Context

With this change both the bincode and the bincode-legacy formats become unreadable for Barretenberg. It would need further changes in in Barretenberg to remove the decode_bincode fallback.

User Documentation

Check one:

  • No user documentation needed.
  • Changes in docs/ included in this PR.
  • [For Experimental Features] Changes in docs/ to be submitted in a separate PR.

PR Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Opcode count'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.10.

Benchmark suite Current: a702251 Previous: 0d6984c Ratio
rollup-tx-merge 1478 opcodes 1302 opcodes 1.14

This comment was automatically generated by workflow using github-action-benchmark.

CC: @TomAFrench

@aakoshh aakoshh mentioned this pull request Dec 17, 2025
Base automatically changed from af/msgpack-compact-cpp to af/msgpack-default December 18, 2025 12:29
@aakoshh
Copy link
Copy Markdown
Contributor Author

aakoshh commented Dec 18, 2025

This is done in aztec-packages using a Python script in AztecProtocol/aztec-packages#19047

Once that is merged, we can safely assume that we can also stop doing it on our side. Until then it's probably safer to keep it in tact, in case we do some serialisation changes and that PR does not get merged, we don't want to accidentally remove bincode support.

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'ACVM Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: f2116d5 Previous: e2cdc0b Ratio
perfectly_parallel_batch_inversion_opcodes 2791080 ns/iter (± 13681) 2263894 ns/iter (± 72606) 1.23

This comment was automatically generated by workflow using github-action-benchmark.

CC: @TomAFrench

Base automatically changed from af/msgpack-default to master January 6, 2026 19:42
@TomAFrench TomAFrench enabled auto-merge January 8, 2026 15:54
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Execution Time'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: 924bac6 Previous: 7963300 Ratio
rollup-root 0.005 s 0.004 s 1.25

This comment was automatically generated by workflow using github-action-benchmark.

CC: @TomAFrench

@TomAFrench TomAFrench added this pull request to the merge queue Jan 8, 2026
Merged via the queue into master with commit 37c15b9 Jan 8, 2026
135 checks passed
@TomAFrench TomAFrench deleted the af/cpp-no-bincode branch January 8, 2026 16:51
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