fn gen_many_small_chunk(rows: usize) -> Vec<u32> {
    let mut input = vec![];
    let mut emit_chunk = false;
    let mut chunk_size = 0;

    for i in 0..rows as u32 {
        if i % 9 == 0 {
            emit_chunk = true;
        }

        if emit_chunk {
            input.push(i);
            chunk_size += 1;
        }

        if chunk_size == 3 {
            chunk_size = 0;
            emit_chunk = false;
        }
    }

    input
}
// generate small sequences of 3 rows periodically. This leads to about 34% of
// rows being requested.
generate small sequences of 3 rows periodically. This leads to about 34% of
rows being requested.
generate small sequences of 3 rows periodically . This leads to about 34% of rows being requested .
fn gen_many_small_chunk(rows: usize) -> Vec<u32> {
    let mut input = vec![];
    let mut emit_chunk = false;
    let mut chunk_size = 0;
    for i in 0..rows as u32 {
        if i % 9 == 0 {
            emit_chunk = true;
        }
        if emit_chunk {
            input.push(i);
            chunk_size += 1;
        }
        if chunk_size == 3 {
            chunk_size = 0;
            emit_chunk = false;
        }
    }
    input
}
fn gen_many_small_chunk ( rows : usize ) -> Vec < u32 > { let mut input = vec ! [ ] ; let mut emit_chunk = false ; let mut chunk_size = 0 ; for i in 0 .. rows as u32 { if i % 9 == 0 { emit_chunk = true ; } if emit_chunk { input . push ( i ) ; chunk_size += 1 ; } if chunk_size == 3 { chunk_size = 0 ; emit_chunk = false ; } } input }
generate small sequences of 3 rows periodically.
generate small sequences of 3 rows periodically .
rows
usize
rows
usize