Skip to content

Commit 61161c6

Browse files
gabrielbosioMauroToscano
authored andcommitted
Cache LDE from Round 1 to skip recomputation in Rounds 2-4 (#492)
* Cache LDE from Round 1 to skip recomputation in Rounds 2-4 * Remove timing profile script (moved to separate PR) * Document memory trade-off, fix expect messages * Fix stale trace_lde comment in prove_rounds_2_to_4 * Remove dead trace_lde telemetry field * Remove LDE column pool, commit functions own their buffers (#498) * Simplification (#500) * Simplification * Rename metadata -> cache * Rework * CacheLDE -> LDE * Drop has_aux_trace param from build_round1 * Route reconstruct_round1 through build_round1 * Revert "Drop has_aux_trace param from build_round1" This reverts commit 164c7c0. * Pass has_aux_trace to build_round1 from reconstruct_round1 --------- Co-authored-by: gabrielbosio <gabrielbosio95@gmail.com> --------- Co-authored-by: Mauro Toscano <12560266+MauroToscano@users.noreply.github.com>
1 parent e8f201a commit 61161c6

6 files changed

Lines changed: 214 additions & 266 deletions

File tree

crypto/math/src/fft/polynomial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl<E: IsField> Polynomial<FieldElement<E>> {
215215
///
216216
/// Unlike [`coset_lde_full_into`], this skips the `clear + extend_from_slice` step
217217
/// since data is already in the buffer. Used for transpose elimination: columns are
218-
/// extracted directly into pool buffers, then expanded in-place.
218+
/// extracted directly into owned buffers, then expanded in-place.
219219
pub fn coset_lde_full_expand<F: IsFFTField + IsSubFieldOf<E> + Send + Sync>(
220220
buffer: &mut Vec<FieldElement<E>>,
221221
blowup_factor: usize,

crypto/stark/src/instruments.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ use std::time::Duration;
55
/// Sub-operation timing breakdown for a single table in Rounds 2-4.
66
#[derive(Clone, Debug, Default)]
77
pub struct TableSubOps {
8-
/// reconstruct_round1 (expand_pool_to_lde)
9-
pub trace_lde: Duration,
108
/// evaluator.evaluate()
119
pub constraints: Duration,
1210
/// decompose_and_extend_d2
@@ -28,11 +26,11 @@ pub struct TableSubOps {
2826
/// Sub-operation breakdown for Round 1 aux commit pass.
2927
#[derive(Clone, Debug, Default)]
3028
pub struct Round1SubOps {
31-
/// Main trace: expand_pool_to_lde (LDE/FFT)
29+
/// Main trace: expand_columns_to_lde (LDE/FFT)
3230
pub main_lde: Duration,
3331
/// Main trace: commit_columns_bit_reversed (Merkle)
3432
pub main_merkle: Duration,
35-
/// Aux trace: expand_pool_to_lde (LDE/FFT)
33+
/// Aux trace: expand_columns_to_lde (LDE/FFT)
3634
pub aux_lde: Duration,
3735
/// Aux trace: commit_columns_bit_reversed (Merkle)
3836
pub aux_merkle: Duration,

0 commit comments

Comments
 (0)