Skip to content

perf: 파일 검색 응답 속도 개선 - #32

Merged
safethecode merged 2 commits into
mainfrom
perf/file-search-cache
Oct 19, 2026
Merged

safethecode merged 2 commits into
mainfrom
perf/file-search-cache

Conversation

@safethecode

Copy link
Copy Markdown
Owner

문제와 변경 후 동작

검색어를 편집할 때마다 하위 폴더를 다시 읽어 결과가 늦게 나타났습니다. 폴더 목록을 최대 10초·10만 항목까지 재사용하고, 입력 대기를 75ms로 줄이며 찾은 결과부터 표시합니다. 새로고침·폴더 이동은 캐시를 교체하고 취소는 실제 읽기까지 전달합니다.

검증

  • ./scripts/check.sh 통과, 전체 34개 테스트 통과.
  • 200폴더·1만 파일 로컬 최적화 빌드 측정: 첫 검색 459ms, 다음 검색 39ms(약 12배). 환경별 속도 보장은 아닙니다.
  • 별도 bundle ID·세션 경로의 실제 AppKit 앱에서 Sources 검색, 검색어 변경, 상대 경로, 새로고침, 검색 지우기, 라이트·다크 모드를 확인했습니다. 사용 중인 원래 Chop 셸은 유지했습니다.

리뷰

셀프 리뷰입니다. 캐시 예산·만료·취소된 읽기의 경합, 새로고침으로 추가 파일 반영, 기존 500개 제한과 오류/심볼릭 링크 규칙을 확인했습니다.

남은 제한

파일 내용 검색은 기존과 같이 지원하지 않습니다. 외부 파일 변경은 다음 검색에서 캐시 만료 또는 새로고침 후 반영합니다.

@safethecode
safethecode merged commit 2298470 into main Oct 19, 2026
1 check passed
@safethecode
safethecode deleted the perf/file-search-cache branch October 19, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant