BiocParallel icon indicating copy to clipboard operation
BiocParallel copied to clipboard

Loading an (arbitrary) package slows down bplapply()

Open mtmorgan opened this issue 9 years ago • 1 comments

2.5x longer when mgcv is loaded.

> library(BiocParallel)
> system.time(bplapply(1:1e2 , function(...) {}, BPPARAM = MulticoreParam(workers = 2, tasks=1e2)))
   user  system elapsed 
  0.089   0.008   5.832 
> library(mgcv)
Loading required package: nlme
This is mgcv 1.8-10. For overview type 'help("mgcv-package")'.
> system.time(bplapply(1:1e2 , function(...) {}, BPPARAM = MulticoreParam(workers = 2, tasks=1e2)))
   user  system elapsed 
  0.095   0.012  12.048 

mtmorgan avatar Dec 21 '15 17:12 mtmorgan

I can't reproduce this old issue (just saying if you want to close it...)

> library(BiocParallel)
>  system.time(bplapply(1:1e2 , function(...) {}, BPPARAM = MulticoreParam(workers = 2, tasks=1e2)))
   user  system elapsed 
  3.549   1.965   2.547 
> library(mgcv)
Loading required package: nlme
This is mgcv 1.8-41. For overview type 'help("mgcv-package")'.
> system.time(bplapply(1:1e2 , function(...) {}, BPPARAM = MulticoreParam(workers = 2, tasks=1e2)))
   user  system elapsed 
  2.464   2.799   2.203 
> 
``

zeehio avatar Nov 04 '22 15:11 zeehio