Bioconductor / BiocParallel

Bioconductor facilities for parallel evaluation
https://bioconductor.org/packages/BiocParallel
65 stars 29 forks source link

[Bioc 3.15] Implementing the 6-layer model for the apply function #163

Closed Jiefei-Wang closed 2 years ago

Jiefei-Wang commented 2 years ago

This pull request follows the pull roadmap in https://github.com/Bioconductor/BiocParallel/pull/162 and implements the 6-layer model for the apply function. The changes include:

  1. The function .bploop_lapply_iter is revised such that there is no need to split X in advance, the argument X for FUN will be generated on demand.
  2. .redo_index will return the index of X instead of a logical vector.
  3. A minor bug fix for the missing log and result issue when a worker error occurs.

Best, Jiefei

Jiefei-Wang commented 2 years ago

This is too messy, I'll open a new one instead.