frollapply could optionally use mirai+mori rather than base R parallel's fork

Open
#7,891 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
r
Domain
data

Research direction

Start with the linked frollapply documentation in man/frollapply.Rd and inspect the current parallel-processing behavior it describes. Work out the design for an optional mirai+mori backend alongside base R fork processing, including the suggested dependencies; done means parallel frollapply can use the alternative on Windows and other systems without fork support.

Written by the indexing model from the issue text.

Description

feature request froll parallel

frollapply now uses base R's parallel package fork for parallel computation of FUN. Adding mirai and mori packages together it could provide an alternative backend for parallel processing in frollapply.
Cost of it means 2 extra suggested dependency (3 pkgs in total, including nanonext, dep of mirai).
Benefits are that parallel processing will work on Windows, and other OSes where fork is not available.
Moreover, posit workbenchmark is not handling fork well, so that could be an alternative for posit workbench users.

https://github.com/Rdatatable/data.table/blob/e26cf1b6b95474d90d3db462409e2d59e371b740/man/frollapply.Rd#L6
note that frollapply is still experimental which gives more freedom to re-work

Dominant language
R
Stars
3.9k
Forks
1.1k
Avg merge
14h 4m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Rdatatable/data.table

All issues in Rdatatable/data.table

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.