Skip to content

refactor(ignore): defer filename normalization after cheap exclusions - #618

Draft
seonghobae wants to merge 2 commits into
masterfrom
bolt/defer-tolowercase-15282683402831645073
Draft

refactor(ignore): defer filename normalization after cheap exclusions#618
seonghobae wants to merge 2 commits into
masterfrom
bolt/defer-tolowercase-15282683402831645073

Conversation

@seonghobae

@seonghobae seonghobae commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Current exact authority

  • protected target: master@55b39b4ebad435670f26ec8065dfc980950e090e
  • exact head: c9168895cba0d9dccde33efeb978a165be90ba1c
  • lifecycle: open / Draft / mergeable
  • protected-base effective delta: only src/main/kotlin/html4tree/main.kt

Verified semantic delta

The ignore-policy pass now checks two cheap cases first—dot-like hidden names and the literal ~ suffix—and computes toLowerCase(Locale.ROOT) only for names that still need case-insensitive sensitive-name/extension checks. The intended semantics remain unchanged: all previously excluded hidden, backup-suffix, sensitive-name and sensitive-extension entries must still be excluded.

This establishes a conditional-allocation refactor, not a buyer-visible performance result. It is true at source level that entries rejected by the first two branches no longer execute toLowerCase(). That does not by itself establish lower total allocation, lower GC pause time, lower elapsed time, or material improvement on a real directory workload.

Repair in this lineage

The generated branch appended a repository-wide .jules/bolt.md rule prescribing this evaluation order generally and claimed that memory profiling had already established reduced allocation/GC overhead without a committed reproducible profile. Normal descendant c9168895c... restores the exact protected Bolt journal blob while preserving the local product refactor. No force update or destructive rebase was used.

The branch also had no dedicated regression that proves semantic parity across the reordered branches. Before performance promotion, add focused tests covering hidden/dot-like names, ~ suffixes, case variants of sensitive basenames, sensitive extensions, Unicode/CJK ordinary names, and names that satisfy more than one exclusion rule. If allocation/GC improvement is claimed, benchmark the old/new loop on representative directory-name distributions with the same JDK/Kotlin/JIT/GC/warm-up conditions and report allocation plus latency/throughput evidence. If the measured effect is negligible, keep this only as a readability/conditional-work refactor or revert to the simpler implementation.

Promotion boundary

Remain Draft until one unchanged exact head has semantic-parity tests, current CI/JaCoCo/security/SAST/OSV/Scorecard evidence, and current review/thread admission. Do not use unit-test success as GC evidence, predecessor results, no-op retriggers, self-approval, force rewrite, or gate weakening.

@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 Sep 4, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 12 minutes.

Check out review usage here.

View limit details

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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 31603aaa-47f5-453b-9471-7fcdb783e2b8

📥 Commits

Reviewing files that changed from the base of the PR and between 55b39b4 and c916889.

📒 Files selected for processing (1)
  • 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.

@seonghobae
seonghobae marked this pull request as draft September 4, 2026 04:22
@seonghobae seonghobae changed the title ⚡ Bolt: [성능 개선] 파일명 지연 평가를 통한 GC 할당 최적화 refactor(ignore): defer filename normalization after cheap exclusions Sep 4, 2026
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