Repository navigation
perf(bb): bb experimental optimizations behind feature flag - #25798
Draft
IlyasRidhuan wants to merge 14 commits into
Draft
IlyasRidhuan wants to merge 14 commits into
IlyasRidhuan wants to merge 14 commits into
Conversation
fcarreiro
reviewed
Nov 11, 2026
| once. Later environment changes have no effect. Hot arithmetic reads cached | ||
| booleans without an initialization guard, mutex or atomic load. | ||
|
|
||
| bb.js accepts `experimentalOptimizations` in backend initialization options. |
Contributor
There was a problem hiding this comment.
Nice. Watch out that bbjs and the IPC in next and v6 differ quite a lot. Have the agent double check the plumning in v6 when porting.
Collaborator
Author
There was a problem hiding this comment.
yep i will manually port this
Use the bounded reciprocal path for eligible BN254 operands, simplify truncated wide multiplication and retain aligned modulus copies for arithmetic. Category: shared-scalar Source-patch: d1ee8661ce6f72dab2c85012885665f24820603c Co-authored-by: opt <a@b> Co-authored-by: bench <bench@local> Co-authored-by: Sol research <sol-research@local> Co-authored-by: Astra ideator2 <astra-ideator2@local> Co-authored-by: IlyasRidhuan <ilyasridhuan@gmail.com>
Store gate tiles in geometrically growing chunks so append growth does not copy the existing trace. Preserve logical indices and support releasing construction storage. Category: rollup Source-patch: d1ee8661ce6f72dab2c85012885665f24820603c Co-authored-by: opt <a@b> Co-authored-by: bench <bench@local> Co-authored-by: Sol research <sol-research@local> Co-authored-by: Astra ideator2 <astra-ideator2@local> Co-authored-by: IlyasRidhuan <ilyasridhuan@gmail.com>
Assemble/split limbs using narrower shifts, skip reduction for already reduced values, cache constant modulus bounds and replace quotient-bound division with comparisons. Category: rollup Source-patch: d1ee8661ce6f72dab2c85012885665f24820603c Co-authored-by: opt <a@b> Co-authored-by: bench <bench@local> Co-authored-by: Sol research <sol-research@local> Co-authored-by: Astra ideator2 <astra-ideator2@local> Co-authored-by: IlyasRidhuan <ilyasridhuan@gmail.com>
Use limb-wise division rather than bitwise wide division for single-limb divisors; retain the WASM fallback where native wide instructions are unavailable. Category: shared-scalar Source-patch: d1ee8661ce6f72dab2c85012885665f24820603c Co-authored-by: opt <a@b> Co-authored-by: bench <bench@local> Co-authored-by: Sol research <sol-research@local> Co-authored-by: Astra ideator2 <astra-ideator2@local> Co-authored-by: IlyasRidhuan <ilyasridhuan@gmail.com>
IlyasRidhuan
force-pushed
the
design/bb-experimental-optimizations
branch
from
November 12, 2026 18:44
077cf31 to
a9f5c25
Compare
This branch has not been deployed
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.
Benchmarked against the AVM and two (Public + Root) large rollup circuits.