match_list_parallel

Function match_list_parallel 

Source
pub fn match_list_parallel<S1: AsRef<str>, S2: AsRef<str> + Sync + Send>(
    needle: S1,
    haystacks: &[S2],
    config: &Config,
    max_threads: usize,
) -> Vec<Match>
Expand description

Computes the Smith-Waterman score with affine gaps for a needle against a list of haystacks with multithreading.

You should call this function with as many haystacks as you have available as it will automatically chunk the haystacks based on string length to avoid unnecessary computation due to SIMD