feat: add BB_POLY_STATS for prover polynomial memory analysis#20421
Merged
johnathan79717 merged 1 commit intomerge-train/barretenbergfrom Feb 12, 2026
Merged
feat: add BB_POLY_STATS for prover polynomial memory analysis#20421johnathan79717 merged 1 commit intomerge-train/barretenbergfrom
johnathan79717 merged 1 commit intomerge-train/barretenbergfrom
Conversation
…analysis When the BB_POLY_STATS env var is set, prints a per-polynomial report after ProverInstance construction showing value-size distribution (zeros, <=4B, <=8B, <=16B, <=32B) and ideal compressed memory. Helps assess feasibility of variable-length encoding for memory reduction. Resolves AztecProtocol/barretenberg#1623
ledwards2225
approved these changes
Feb 12, 2026
30aa0ef
into
merge-train/barretenberg
16 of 18 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BB_POLY_STATSenv var) that reports per-polynomial value-size distribution after ProverInstance constructionUsage
Outputs a table like:
Initial findings (2^19 mock app circuit)
uint32_tgives 8x compressionTest plan
cmake --build build --target chonk_benchBB_POLY_STATS=1 ./build/bin/chonk_benchproduces correct per-polynomial reportBB_POLY_STATSis unset (zero overhead in normal operation)