-
Notifications
You must be signed in to change notification settings - Fork 0
⚡ Bolt: 고유값 개수 측정 시 stats::na.omit() 호출 제거를 통한 속도 최적화 #262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -770,8 +770,8 @@ autoFIPC <- | |
| if ( | ||
| !is.na(newFormItemName) && | ||
| !is.na(oldFormItemName) && | ||
| (length(stats::na.omit(unique(newFormModel@Data$data[, newFormItemName]))) == | ||
| length(stats::na.omit(unique(oldFormModel@Data$data[, oldFormItemName])))) | ||
| (sum(!is.na(unique(newFormModel@Data$data[, newFormItemName]))) == | ||
| sum(!is.na(unique(oldFormModel@Data$data[, oldFormItemName])))) | ||
|
Comment on lines
+773
to
+774
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win 새 표현식을 회귀 테스트에서 직접 실행하세요. 현재 제안된 회귀 테스트 수정 new_idiom <- vapply(
vecs,
- function(x) length(na.omit(unique(x))),
+ function(x) sum(!is.na(unique(x))),
integer(1)
)As per coding guidelines, 🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| ) { | ||
| message( | ||
| 'applying ', | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
문서 변경을 알고리즘 변경과 분리하세요.
이 파일의 문서 추가와
R/aFIPC.R의 알고리즘 변경이 동일한 변경 집합에 포함되어 있습니다. 문서 변경을 별도 커밋 또는 PR로 이동하세요. 분리가 불가능하면 PR 요약에 예외 사유와 위험을 명시하세요.As per coding guidelines, workflow, 문서, dependency policy 변경과 알고리즘 변경은 분리해야 합니다.
🤖 Prompt for AI Agents
Source: Coding guidelines