Thomas 3 hete
szülő
commit
1e239d300d
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      src/uniqueness/suffix.rs

+ 3 - 0
src/uniqueness/suffix.rs

@@ -40,6 +40,7 @@ pub fn build_suffix_array_and_lcp(genome: &[u8]) -> (Vec<GenomeCoord>, Vec<Uniqu
     #[cfg(target_os = "windows")]
     let sa_result = SuffixArrayConstruction::for_text(genome)
         .in_owned_buffer64()
+        .single_threaded()
         .run()
         .expect("libsais failed to construct suffix array");
 
@@ -73,6 +74,7 @@ pub fn build_suffix_array_and_lcp(genome: &[u8]) -> (Vec<GenomeCoord>, Vec<Uniqu
     #[cfg(target_os = "windows")]
     let sa_with_plcp = sa_result
         .plcp_construction()
+        .single_threaded()
         .run()
         .expect("libsais failed to construct PLCP array");
 
@@ -96,6 +98,7 @@ pub fn build_suffix_array_and_lcp(genome: &[u8]) -> (Vec<GenomeCoord>, Vec<Uniqu
     let (lcp64, _plcp64) = sa_with_plcp
         .lcp_construction()
         .replace_suffix_array()
+        .single_threaded()
         .run()
         .expect("libsais failed to construct LCP array")
         .into_parts();