From: Benjamin Auder Date: Tue, 25 Apr 2017 13:40:19 +0000 (+0200) Subject: load-balancing parLapply for WER dists computations X-Git-Url: https://git.auder.net/variants/img/current/%7B%7B%20asset%28%27mixstore/images/favicon.png%27%29%20%7D%7D?a=commitdiff_plain;h=57f337af19cd6251815bb1ff2d62f4c58e8b6078;p=epclust.git load-balancing parLapply for WER dists computations --- diff --git a/epclust/R/computeWerDists.R b/epclust/R/computeWerDists.R index 9938bc1..f47cd23 100644 --- a/epclust/R/computeWerDists.R +++ b/epclust/R/computeWerDists.R @@ -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.