Skip to main content

merge_sort_parallel

Function merge_sort_parallel 

Source
pub fn merge_sort_parallel(data: &[f64]) -> Vec<f64>
Expand description

Parallel merge sort for f64 slices using Rayon.

Splits the array recursively. Below SERIAL_THRESHOLD elements the standard library sort is used. Above that the two halves are sorted in parallel and then merged sequentially.