risingwave_storage::hummock::compactor::compaction_utils

Function calculate_task_parallelism_impl

source
pub fn calculate_task_parallelism_impl(
    worker_num: usize,
    parallel_compact_size: u64,
    compaction_size: u64,
    max_sub_compaction: u32,
) -> usize