feat(prover): add MEMW_A aligned-memory fast path table#441
Merged
Conversation
Codex Code ReviewFindings
Assumptions / gaps
|
Review: feat(prover) — MEMW_A aligned-memory fast pathOverall the implementation is correct and well-structured. The routing logic, bus interaction format, alignment/timestamp checks, and constraint set all look sound. Two minor issues noted below (see inline comments). Security / correctnessNo vulnerabilities found. Specific points verified:
Issues
|
Collaborator
Author
|
/bench |
Benchmark — fib_iterative_8M (median of 3)Table parallelism: 32 (auto = cores / 3)
Commit: 49bf320 · Baseline: cached · Runner: self-hosted bench |
5520456 to
6de2998
Compare
Collaborator
|
/bench |
diegokingston
approved these changes
Mar 19, 2026
Collaborator
Author
|
/bench |
2 similar comments
Collaborator
|
/bench |
Collaborator
|
/bench |
jotabulacios
approved these changes
Mar 25, 2026
d10b9fa to
c6cac65
Compare
Collaborator
Author
|
/bench |
Collaborator
Author
|
/bench |
1 similar comment
Collaborator
Author
|
/bench |
c5c69f4 to
e209c96
Compare
Collaborator
Author
|
/bench |
MauroToscano
requested changes
Mar 28, 2026
Contributor
MauroToscano
left a comment
There was a problem hiding this comment.
We need to understand why there is no improvement
… into feat/memw-aligned
MauroToscano
approved these changes
Mar 31, 2026
erik-3milabs
pushed a commit
that referenced
this pull request
Apr 10, 2026
* don't run executor benches all the time * Add MEMW_A aligned-memory fast path table * fix deviation from spec: is_half and is_byte assumptions * add comment * Add a prove_elf test * add prove_elf test using both MEMW and MEMW_A chips * fix comment: bus numbering * Use Multiplicity::Sum3 for w2 in MEMW_A to avoid heap allocation on hot path * change max_rows per chunk to 2^19 insted of 2^20 --------- Co-authored-by: MauroFab <maurotoscano2@gmail.com> Co-authored-by: Mauro Toscano <12560266+MauroToscano@users.noreply.github.com>
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.
Description
Implements the MEMW_A aligned fast path from spec PR #398.
Adds a new 30-column table for memory/register accesses where all bytes share the same
old_timestamp(aligned ops). Operations are routed at trace build time: aligned ops with uniformtimestamps go to MEMW_A, the rest go to MEMW.
old_timestampinstead of per-byte (8× fewer LT checks).