Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix case sensitivity fswatch and users #64210
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
base: main
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Fix case sensitivity fswatch and users #64210
Changes from 1 commit
37b4252eee9f294836323b7496dd1adb73bc0b2489c0749040095dcf62e15af93fbb03630ba041afc814bf2591d3711d851532fadef54d93File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Skip shared path prefixes eight bytes at a time and handle ASCII case folding without component splitting. Retain the Unicode fallback for case-equivalent paths with different UTF-8 lengths. Reuse the parent directory's comparer for WatchFile instead of querying filesystem case sensitivity twice. Add routing benchmarks and expand boundary and Unicode alignment coverage. Compare against the initial casing fix on Apple M1. Allocations are unchanged: zero for exact matches and rejections, and one for rebasing a differently cased event path. goos: darwin goarch: arm64 pkg: github.com/microsoft/TypeScript/tsc/internal/fswatch cpu: Apple M1 │ before │ after │ │ sec/op │ sec/op vs base │ FSEventsDisplayPath/exact-match-8 9.031n ± ∞ ¹ 8.958n ± ∞ ¹ ~ (p=0.548 n=5) FSEventsDisplayPath/case-mismatch-8 130.50n ± ∞ ¹ 80.89n ± ∞ ¹ -38.02% (p=0.008 n=5) FSEventsDisplayPath/sibling-miss-8 103.20n ± ∞ ¹ 14.26n ± ∞ ¹ -86.18% (p=0.008 n=5) FSEventsDisplayPath/unrelated-miss-8 26.120n ± ∞ ¹ 6.676n ± ∞ ¹ -74.44% (p=0.008 n=5) FSEventsDisplayPath/unicode-match-8 115.30n ± ∞ ¹ 74.29n ± ∞ ¹ -35.57% (p=0.008 n=5) FSEventsDisplayPath/unicode-length-match-8 98.83n ± ∞ ¹ 52.34n ± ∞ ¹ -47.04% (p=0.008 n=5) FSEventsRoutingFanout/100-8 10.799µ ± ∞ ¹ 1.634µ ± ∞ ¹ -84.87% (p=0.008 n=5) FSEventsRoutingFanout/1000-8 109.21µ ± ∞ ¹ 15.10µ ± ∞ ¹ -86.18% (p=0.008 n=5) geomean 284.3n 94.97n -66.60% ¹ need >= 6 samples for confidence interval at level 0.95Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing