stan-dev / stan-dev/posterior

Speed up broadcast_and_bind_rvars()

Open
#260 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

efficiency
Dominant language
R
Stars
171
Forks
26
Avg merge
2d 18h
Merged PRs (30d)
3

Description

At some point we could speed up broadcast_and_bind_rvars() by allowing it to operate on lists of rvars instead of pairs. See the TODO in that function.

See comment by @paul-buerkner in https://github.com/stan-dev/posterior/pull/258#discussion_r1033410966

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.

Research direction

Locate broadcast_and_bind_rvars() and read the TODO in that function first. Review the discussion in pull request #258 for the proposed list-based operation. Done means the function supports the intended list representation, preserves existing behavior, and is measurably faster.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
performance
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.