Skip to content

⚡ Bolt: [performance improvement] Cache directory listing in process_ignore_file - #516

Open
seonghobae wants to merge 1 commit into
masterfrom
bolt-cache-dirlist-17349351478173510936
Open

⚡ Bolt: [performance improvement] Cache directory listing in process_ignore_file#516
seonghobae wants to merge 1 commit into
masterfrom
bolt-cache-dirlist-17349351478173510936

Conversation

@seonghobae

@seonghobaeseonghobae commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

💡 What: process_ignore_file 내에서 반복적으로 호출되던 curr_dir.list() 호출 결과를 cachedDirList 지역 변수로 캐싱합니다.
🎯 Why: dirFilesNames가 null인 경우 .html4ignore 처리와 기본 민감 파일 처리를 위해 비싼 OS I/O 통신인 curr_dir.list()가 최대 2번 중복 호출되는 성능 병목을 제거합니다.
📊 Impact: 각 디렉토리 탐색 시 발생하는 파일 시스템 호출 횟수를 절반으로 줄여 I/O 오버헤드를 감소시킵니다.
🔬 Measurement: 수많은 파일 및 폴더 트리를 크롤링하는 벤치마크 테스트에서 시간 감소를 확인할 수 있습니다.


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


Open in Devin Review

@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

Copy link
Copy Markdown

Warning

Review limit reached

@seonghobae, you've reached your PR review limit, so we couldn't start this review.

Next review available in:56 minutes

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

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

How can I continue?

Wait for the limit to reset, then comment @coderabbitai review or push new commits to the PR.

An organization admin can change what happens after included review limits in Billing.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a41e5650-1e9e-421d-adb1-c8a81e251c48

📥 Commits

Reviewing files that changed from the base of the PR and between de82f99 and b4eb4e1.

📒 Files selected for processing (2)
  • .jules/bolt.md
  • src/main/kotlin/html4tree/main.kt

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.

@devin-ai-integrationdevin-ai-integrationBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Open in Devin Review


fun process_ignore_file(curr_dir: File, dirFilesNames: Array<String>? = null): Set<String> {

val cachedDirList = dirFilesNames ?: curr_dir.list()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Info: Caching preserves behavior, cuts one list() call

Both prior evaluations of dirFilesNames ?: curr_dir.list() collapse into one cachedDirList. When dirFilesNames is null the ignore-file block previously called curr_dir.list() a second time; that redundant call is now removed. Null handling and iteration order are unchanged.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for freeto 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

@seonghobae