Skip to main content

merge_sort_parallel_threshold

Function merge_sort_parallel_threshold 

Source
pub fn merge_sort_parallel_threshold(
    data: &mut Vec<f64>,
    parallel_threshold: usize,
)
Expand description

Parallel merge sort with configurable thread threshold.

Uses rayon to parallelise the merge at each recursive level when the sub-array exceeds parallel_threshold.