Use parallel interface when computing summary
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 1.1k
- Forks
- 266
- Avg merge
- 2h 56m
- Merged PRs (30d)
- 1
Description
Computing ess and Rhat in summary can be quite slow. It seems that this can be paralleleized quite easily by switiching the sapply's to parSapply. I started to make the changes, but wanted to check in here to see if that makes sense. In particular, I don't want to break things for windows users by relying on unsupported functions. However, it seems that R already uses mclapply, which makes me think parallel processing in Rstan is not available on windows anyway.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the summary implementation and locate the sapply calls used to compute ESS and Rhat. Check whether replacing them with parSapply preserves supported behavior, especially on Windows; done means summary computation is parallelized without breaking platform compatibility.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- performance
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100