From 57f337af19cd6251815bb1ff2d62f4c58e8b6078 Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Tue, 25 Apr 2017 15:40:19 +0200 Subject: [PATCH] load-balancing parLapply for WER dists computations --- epclust/R/computeWerDists.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.44.0