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/js/css/bundles/framework/images/R.css?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.