load-balancing parLapply for WER dists computations
authorBenjamin Auder <benjamin.auder@somewhere>
Tue, 25 Apr 2017 13:40:19 +0000 (15:40 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Tue, 25 Apr 2017 13:40:19 +0000 (15:40 +0200)
epclust/R/computeWerDists.R

index 9938bc1..f47cd23 100644 (file)
@@ -116,7 +116,7 @@ computeWerDists <- function(indices, getSeries, nb_series_per_chunk, smooth_lvl=
 
        ignored <-
                if (parll)
-                       parallel::parLapply(cl, seq_len(n-1), computeDistances)
+                       parallel::parLapplyLB(cl, seq_len(n-1), computeDistances)
                else
                        lapply(seq_len(n-1), computeDistances)
        Xwer_dist[n,n] <- 0.