[FEAT] CSMDict 최신 → 과거 순서 정렬#897
Merged
chae-dahee merged 6 commits intoSep 24, 2025
Merged
Conversation
Contributor
|
음. 아무래도 이부분은 TC와 엔진의 많은 부분을 고쳐야 할 것 같습니다. 그건 고려를 못했네요. |
added 4 commits
September 23, 2025 18:41
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
## Related issue
#870 CSM Dictionary 최근 커밋 우선 정렬
#899 DFS 로직, 테스트케이스에 대한 논의
Work list
과거 → 최신 순서의 상황 (기존)
최신 → 과거순으로 가져옴 (gitUtil.ts, gitWorker.ts)최신 → 과거순서 유지 (parser.ts)masterStem.nodes를 reverse 해서 과거 → 최신 정렬을 목표로 코드를 구성함과거 → 최신순서를 가지게 됨최신 → 과거순서 유지최신 → 과거 순서 (변경 사항)
최신 → 과거순으로 로그 가져오기최신 → 과거순서를 가지게 됨🚀 cms.ts 의 squash merge 를 처리하는 방식을 DFS 순회로 개선했습니다.
기존에는 stem 기반으로 커밋 목록을 명시적으로 정렬하고 잘라냈다면, 현재 커밋 관계에 따라 정렬 로직 없이 구분합니다.
Result
코드 품질 및 유지보수성 향상: Git 데이터의 흐름이 일관되게
최신 → 과거순서가됩니다. 불필요한 reverse 나 데이터 순서의 복잡성이 사라져 코드가 단순하고 명확해졌습니다.예측 불가능한 상황 방지: 더 방대한 저장소의 경우 --date-order가 성능에 영향을 줄 수 있습니다.
Discussion
성능측정 하는 과정에서 디버그 모드를 보면서 느낀건데, commitDict 에서 success 로 넘어가는 진행단계에서 시간이 꽤 소요되는 것 같습니다. 이부분에 대해 퍼포먼스 팀의 업무 할당 또는 방향성을 잡으면 어떨까 합니다. 관련하여 알고 있는 부분 있으면 공유 부탁드립니다.
추후 cms 페이지네이션 계획