Skip to content

⚡ Bolt: [성능 향상] 문자열 소문자 변환 지연을 통한 메모리 할당 감소 - #885

Open
seonghobae wants to merge 2 commits into
masterfrom
jules-13416743033819428401-33c252e4
Open

seonghobae wants to merge 2 commits into
masterfrom
jules-13416743033819428401-33c252e4

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

💡 What: process_ignore_file 함수 내 파일 필터링 루프에서 문자열을 소문자로 변환하기 전, 단순 boolean 검사(isHiddenFile(), endsWith("~"))를 먼저 수행하여 조기 종료(Short-circuit)하도록 조건을 재배열했습니다.
🎯 Why: 기존 코드는 파일 확장자나 이름을 검사하기 위해 모든 파일에 대해 무조건 toLowerCase()를 호출하여 새로운 문자열을 할당했습니다. 숨김 파일이나 백업 파일(~)과 같이 간단한 규칙으로 제외되는 항목들도 불필요하게 가비지를 생성하여 디렉토리 크롤러에 부담을 주었습니다.
📊 Impact: 제외되는 숨김/백업 파일당 불필요한 String 객체 할당을 완전히 제거하여 가비지 컬렉터(GC)의 압력을 줄이고 메모리 사용량을 감소시킵니다.
🔬 Measurement: 수만 개의 숨김 파일이 포함된 대규모 디렉토리에서 프로파일러(VisualVM 등)를 실행하면, String.toLowerCase()에 의한 객체 할당 횟수 및 힙 메모리 스파이크가 눈에 띄게 감소함을 확인할 수 있습니다.


PR created automatically by Jules for task 13416743033819428401 started by @seonghobae

@google-labs-jules

Copy link
Copy Markdown

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 57 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 201594b4-8abf-49d3-8e45-629e3c3da40f
📥 Commits

Reviewing files that changed from the base of the PR and between 728f0f3 and 4c4065f.

📒 Files selected for processing (2)
  • .jules/bolt.md
  • src/main/kotlin/html4tree/main.kt
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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