perf: skip unnecessary import detection work#546
Conversation
📝 WalkthroughWalkthrough
ChangesImport Detection Skip Optimization
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
This PR improves unimport performance:
Benchmark
According to my local benchmarks via Nuxt, I saw a 48% reduction for the "transform-heavy workload". As comparison: Just the old "fail-fast precheck" took 929.1ms.
origin/mainA manually constructed "worst case" scenario got roughly 6% worse (late hits using
injectAtEnd).Summary by CodeRabbit
New Features
Tests