-
-
Notifications
You must be signed in to change notification settings - Fork 34
refactor: remove CachedPathImpl::canonicaling #834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: remove CachedPathImpl::canonicaling #834
Conversation
How to use the Graphite Merge QueueAdd the label merge to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #834 +/- ##
==========================================
- Coverage 94.26% 94.21% -0.05%
==========================================
Files 17 17
Lines 3068 3078 +10
==========================================
+ Hits 2892 2900 +8
- Misses 176 178 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CodSpeed Performance ReportMerging #834 will improve performances by 4.91%Comparing Summary
Benchmarks breakdown
Footnotes
|
Merge activity
|
5c6f234 to
06c2c45
Compare
Broke in #834 Moves path.canonicalized.get_or_init() from canonicalize_impl() into the recursive canonicalize_with_visited() function. This enables caching of parent directory canonicalization results, which are then reused when canonicalizing sibling paths. Performance impact (measured with many example on monitor-oxc): - Total filesystem syscalls: 124,071 → 39,296 (-68.3%) - symlink_metadata calls: 99,169 → 17,503 (-82.4%) - read_link calls: 6,127 → 3,018 (-50.7%) The optimization is particularly effective for: - Projects with deep node_modules structures - pnpm workspaces (heavy symlink usage) - Parallel resolution of multiple packages All existing tests pass with no behavior changes.
No description provided.