⚡ Bolt: Optimize ifelse with vectorized subsetting in llcont.glm - #91
⚡ Bolt: Optimize ifelse with vectorized subsetting in llcont.glm#91seonghobae wants to merge 1 commit into
Conversation
Replaced two instances of `ifelse()` with preallocation and vectorized subsetting in the `binomial` family branch of `llcont.glm` to improve performance.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review. 📝 WalkthroughWalkthrough
Changes이항 계산 최적화
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This is a localized performance optimization in the binomial calculation path, and no actionable merge-blocking risk remains after normal checks and review. Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Superseded by #88
The valid product intent here is the same grouped-binomial
llcont.glm()replacement of eagerifelse()calls with conditional preallocation/subsetting. Canonical #88 now carries that behavior on current protected master and also repairs the scalar-weight row-shape defect, adds a production-path regression, and preserves the unrelated hurdle benchmark instead of deleting it.#88 exact head:
fd746998ace024b36e3418fb7a4c9998023eff40This branch's
benchmark_hurdle_ifelse.Rdeletion is not a valid part of the GLM change, and itsres_wt <- wt * 0implementation does not safely cover a multi-row grouped response whenwtis scalar. No unique valid semantic/test/fixture/contract delta remains outside #88, so this close is verified-successor consolidation rather than abandonment.