Skip to content

Commit

Permalink
[no-ci] clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ggutoski committed Nov 1, 2023
1 parent 45b74c5 commit a7e822f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions primitives/benches/advz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,17 @@ mod feature_gated {
<<H as OutputSizeUser>::OutputSize as ArrayLength<u8>>::ArrayType: Copy,
{
// play with these items
const RATE: usize = 4; // ratio of num_storage_nodes : polynomial_degree
//
// CODE_RATE is merely a convenient way to automatically choose polynomial
// degree as a function of storage node count.
// If desired, you could set polynomial degrees independent of storage node
// count.
const CODE_RATE: usize = 4; // ratio of num_storage_nodes : polynomial_degree
let storage_node_counts = [512, 1024];
let payload_byte_lens = [1 * MB];

// more items as a function of the above
let poly_degrees_iter = storage_node_counts.iter().map(|c| c / RATE);
let poly_degrees_iter = storage_node_counts.iter().map(|c| c / CODE_RATE);
let supported_degree = poly_degrees_iter.clone().max().unwrap();
let vid_sizes_iter = poly_degrees_iter.zip(storage_node_counts);
let mut rng = jf_utils::test_rng();
Expand Down

0 comments on commit a7e822f

Please sign in to comment.