perf: keep hot paths within frame budget - #54
Conversation
|
Warning Review limit reached
Next review available in: 25 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR adds telemetry-specific SQLite timeouts, prunes scanner traversal, introduces isolated CLI and scan benchmarks, tunes release builds, and updates environment handling. It also simplifies npm test command selection and synchronizes an environment-dependent test. ChangesPerformance and benchmark improvements
Behavior and test corrections
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant CLI
participant StatsDb
participant SQLite
CLI->>StatsDb: open_for_telemetry(stats path)
StatsDb->>SQLite: configure 5ms busy timeout
CLI->>StatsDb: record(stats)
StatsDb->>SQLite: write telemetry
sequenceDiagram
participant Scanner
participant WalkDir
participant Predicate
Scanner->>WalkDir: start traversal
WalkDir->>Predicate: inspect directory entry
Predicate-->>WalkDir: allow or prune descent
WalkDir-->>Scanner: return allowed entries
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
@codex review |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (11 files)
Reviewed by gpt-5.6-terra · Input: 62.3K · Output: 4.7K · Cached: 340.6K |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
node_modulesdirectoriesPreserved behavior
.gitand all six markers:Cargo.toml,package.json,go.mod,pyproject.toml,requirements.txt, andMakefileLocal measurements
node_modulespruning fixture (1,000 packages): approximately 3.50–3.62 msThe broad synthetic scan remains proportional to real filesystem work: the 300-project nested fixture measured approximately 35.5–36.5 ms.
Verification
cargo fmt --all -- --checkcargo clippy --all-targets --locked -- -D warningscargo test --locked(121 tests passed)cargo build --release --lockedcargo bench --bench cli_bench --no-runcargo bench --bench scan_bench --no-runcargo bench --bench go_bench --no-runSummary by CodeRabbit
Performance
node_modules, reducing unnecessary work on large codebases.Bug Fixes