perf: deduplicate Domain and LdeTwiddles across tables in multi_prove#551
Conversation
|
/bench 10 |
Codex Code ReviewNo findings in the PR diff. The change is a straightforward dedup of I could not run |
Review: perf: deduplicate Domain and LdeTwiddles across tables in multi_proveOverall: LGTM — clean, well-motivated optimization. What the PR doesWraps CorrectnessThe cache key is complete and correct:
Issues foundLow — Nit — local No security issues, no bugs, no race conditions. |
Benchmark — fib_iterative_8M (median of 10)Table parallelism: 32 (auto = cores / 3)
Commit: 045b562 · Baseline: built from main · Runner: self-hosted bench |
Codex Code ReviewNo findings in the PR diff. I checked the new domain/twiddle cache in crypto/stark/src/prover.rs and the added coverage in crypto/stark/src/tests/prover_tests.rs. The cache key matches the inputs used by Testing gap: I could not run the targeted Rust tests in this environment because |
Code Review: perf: deduplicate Domain and LdeTwiddles across tables in multi_proveOverall: Clean, well-motivated optimization. The Medium — Cache key is silently coupled to
|
Caches
DomainandLdeTwiddlesbehind anArcinmulti_prove, keyed by(trace_length, blowup_factor, coset_offset), so tables sharing the same domain parameters avoid redundant ~56 MB allocations each. Reduces peak heap by ~2–4 GB on large workloads.Optimization extracted from PR #518.