Repository navigation
Conversation
…eSystemWatcherMock buffer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This pull request is closed, so it cannot be queued. Reopen it to get the box back. |
[Medium impact] The change reaches callers of the mock file-system watcher. Fix recursive path matching before merging so sibling changes cannot still overflow the watched buffer. Findings
|
🚀 Benchmark ResultsCompared to Memory
Time
CompleteTestBenchmarks
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon) AMD EPYC 9V74 3.69GHz, 1 CPU, 4 logical and 2 physical cores .NET SDK 11.0.100 [Host] : .NET 10.0.15 (10.0.15, 10.0.1526.53008), X64 RyuJIT x86-64-v4 Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15 LaunchCount=1 WarmupCount=10 InitializationBenchmarks
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon) AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores .NET SDK 11.0.100 [Host] : .NET 10.0.15 (10.0.15, 10.0.1526.53008), X64 RyuJIT x86-64-v3 Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15 LaunchCount=1 WarmupCount=10 MockCreationBenchmarks
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon) INTEL XEON PLATINUM 8573C 0.80GHz, 1 CPU, 4 logical and 2 physical cores .NET SDK 11.0.100 [Host] : .NET 10.0.15 (10.0.15, 10.0.1526.53008), X64 RyuJIT x86-64-v4 Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15 LaunchCount=1 WarmupCount=10 FileRoundTripBenchmarks
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon) AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores .NET SDK 11.0.100 [Host] : .NET 10.0.15 (10.0.15, 10.0.1526.53008), X64 RyuJIT x86-64-v3 Job=InProcess Toolchain=InProcessEmitToolchain InvocationCount=4096 IterationCount=15 LaunchCount=1 UnrollFactor=1 WarmupCount=10 FileInfoBenchmarks
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon) AMD EPYC 9V74 3.68GHz, 1 CPU, 4 logical and 2 physical cores .NET SDK 11.0.100 [Host] : .NET 10.0.15 (10.0.15, 10.0.1526.53008), X64 RyuJIT x86-64-v4 Job=InProcess Toolchain=InProcessEmitToolchain InvocationCount=65536 IterationCount=15 LaunchCount=1 UnrollFactor=1 WarmupCount=10 FileStreamBenchmarks
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon) AMD EPYC 7763 2.63GHz, 1 CPU, 4 logical and 2 physical cores .NET SDK 11.0.100 [Host] : .NET 10.0.15 (10.0.15, 10.0.1526.53008), X64 RyuJIT x86-64-v3 Job=InProcess Toolchain=InProcessEmitToolchain InvocationCount=2048 IterationCount=15 LaunchCount=1 UnrollFactor=1 WarmupCount=10 DirectoryTreeBenchmarks
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon) Intel Xeon 6975P-C 3.90GHz, 1 CPU, 4 logical and 2 physical cores .NET SDK 11.0.100 [Host] : .NET 10.0.15 (10.0.15, 10.0.1526.53008), X64 RyuJIT x86-64-v4 Job=InProcess Toolchain=InProcessEmitToolchain InvocationCount=512 IterationCount=15 LaunchCount=1 UnrollFactor=1 WarmupCount=10 Enumeration10Benchmarks
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon) AMD EPYC 9V45 4.29GHz, 1 CPU, 4 logical and 2 physical cores .NET SDK 11.0.100 [Host] : .NET 10.0.15 (10.0.15, 10.0.1526.53008), X64 RyuJIT x86-64-v4 Job=InProcess Toolchain=InProcessEmitToolchain InvocationCount=16384 IterationCount=15 LaunchCount=1 UnrollFactor=1 WarmupCount=10 Enumeration1000Benchmarks
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon) AMD EPYC 7763 3.24GHz, 1 CPU, 4 logical and 2 physical cores .NET SDK 11.0.100 [Host] : .NET 10.0.15 (10.0.15, 10.0.1526.53008), X64 RyuJIT x86-64-v3 Job=InProcess Toolchain=InProcessEmitToolchain InvocationCount=512 IterationCount=15 LaunchCount=1 UnrollFactor=1 WarmupCount=10 |
…atcherMock paths Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Other pr choosen #1275 (review) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #1227
FileSystemWatcherMock records changes outside the watched folder, resulting in buffer overflows in the mock
Replaces #1232, dropping the additional fixes, because the pr became too big due to regressions
I also took the time and prepared a pr #1275 that fixes everything. However that pr is big, as I replaced the whole watcher with the dotnet one. So it's up to you @vbreuss which one to choose.