Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Remove unnecessary structs from ram permutation processing
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov committed Aug 14, 2024
1 parent ee759eb commit ba9ce62
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/witness/individual_circuits/memory_related/ram_permutation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,16 +224,6 @@ pub(crate) fn compute_ram_circuit_snapshots<CB: FnMut(WitnessGenerationArtifact)
DEFAULT_NUM_PERMUTATION_ARGUMENT_REPETITIONS
);

// we need witnesses to pop elements from the front of the queue
// but this data should be saved to storage before, during queues simulation
let unsorted_witness_placeholder = FullStateCircuitQueueRawWitness {
elements: Default::default(),
};

let sorted_witness_placeholder = FullStateCircuitQueueRawWitness {
elements: Default::default(),
};

// now we need to have final grand product value that will also become an input for the next circuit

let if_first = idx == 0;
Expand Down Expand Up @@ -329,8 +319,8 @@ pub(crate) fn compute_ram_circuit_snapshots<CB: FnMut(WitnessGenerationArtifact)
num_nondeterministic_writes: new_num_nondet_writes,
},
},
unsorted_queue_witness: unsorted_witness_placeholder,
sorted_queue_witness: sorted_witness_placeholder,
unsorted_queue_witness: Default::default(),
sorted_queue_witness: Default::default(),
};

if sorted_states_len % per_circuit_capacity != 0 {
Expand Down

0 comments on commit ba9ce62

Please sign in to comment.