⚡ Bolt: 데이터 프레임 특정 열 할당(1D subsetting) 최적화 - #223
Conversation
데이터 프레임의 특정 항목을 업데이트할 때 `df[idx, 'col'] <- val` 방식의 2D 인덱싱 대신 `df$col[idx] <- val` 방식의 1D 벡터 인덱싱으로 변경하여 R 내장 `[<-.data.frame` 메서드 호출 및 데이터 프레임 복사 오버헤드를 우회함. 테스트 수행 결과 성능 이슈 개선 및 동일성 유지 확인 완료.
|
👋 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. |
|
Warning Review limit reached
Next review available in: 10 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Comment |
데이터 프레임의 특정 항목을 업데이트할 때 `df[idx, 'col'] <- val` 방식의 2D 인덱싱 대신 `df$col[idx] <- val` 방식의 1D 벡터 인덱싱으로 변경하여 R 내장 `[<-.data.frame` 메서드 호출 및 데이터 프레임 복사 오버헤드를 우회함. 추가로, GitHub Actions CI에서 `R CMD check` 단계가 빌드 외 파일(`.semgrepignore`, `test_dummy.R` 등)로 인해 실패하지 않도록 `.Rbuildignore`에 해당 파일들을 추가함.
데이터 프레임의 특정 항목을 업데이트할 때 `df[idx, 'col'] <- val` 방식의 2D 인덱싱 대신 `df$col[idx] <- val` 방식의 1D 벡터 인덱싱으로 변경하여 R 내장 `[<-.data.frame` 메서드 호출 및 데이터 프레임 복사 오버헤드를 우회함. 추가로, GitHub Actions CI에서 `R CMD check` 단계가 빌드 외 파일(`.semgrepignore`, `test_dummy.R` 등)로 인해 실패하지 않도록 `.Rbuildignore`에 해당 파일들을 추가함.
데이터 프레임의 특정 항목을 업데이트할 때 `df[idx, 'col'] <- val` 방식의 2D 인덱싱 대신 `df$col[idx] <- val` 방식의 1D 벡터 인덱싱으로 변경하여 R 내장 `[<-.data.frame` 메서드 호출 및 데이터 프레임 복사 오버헤드를 우회함. 추가로, GitHub Actions CI의 `R CMD check` 단계가 비표준 파일(`.semgrepignore`, `test_dummy.R` 등)로 인해 실패하지 않도록 `.Rbuildignore`에 해당 파일들을 추가함.
|
Closing as superseded by #156. This PR's production change is the 2D |
Understood. Acknowledging that this work is superseded by #156 and stopping work on this task. |
💡 What:
R/aFIPC.R파일 내에서 특정 데이터 프레임(NewScaleParms,OldScaleParms)의 컬럼(est,value)에 값을 할당하는 코드를 2D 형태(df[idx, 'col'] <- val)에서 1D 형태(df$col[idx] <- val)로 전면 교체했습니다.🎯 Why:
[<-.data.frameS3 메서드가 호출되며 메모리 복사가 자주 발생하여 성능이 크게 저하됩니다. 반면df$col[idx]형태로 접근하면 내부의 벡터를 직접 참조(C 수준)하여 매우 빠릅니다.📊 Impact:
🔬 Measurement:
devtools::test()를 활용해 기존 테스트 스위트 전체 실행 완료.PR created automatically by Jules for task 17889256405357940190 started by @seonghobae