Repository navigation
Use Marvin for CBOR map key hashing - #137264
Merged
Merged
Conversation
…lidation. (cherry picked from commit 45617d8532217dedb5db9cf4975bd987e06fe31f) Co-authored-by: Copilot <[email protected]> Copilot-Session: f424924e-f7b6-4433-b707-17440b886781
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/area-system-formats-cbor, @bartonjs, @vcsjones |
rbhanda
enabled auto-merge (squash)
November 10, 2026 22:34
rbhanda
approved these changes
Nov 10, 2026
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.
Use the shared
Marvinimplementation instead ofHashCode.AddBytesfor CBOR map-key uniqueness checks. Remove the unusedMicrosoft.Bcl.HashCodedependency and its polyfill.Validation
.\build.cmd clr+libs -rc Release -lc Releasepassed..\.dotnet\dotnet.exe build .\src\libraries\System.Formats.Cbor\src\System.Formats.Cbor.csproj -c Release /p:RuntimeConfiguration=Releasepassed fornet12.0,net11.0,net10.0,netstandard2.0, andnet462..\.dotnet\dotnet.exe build /t:test .\src\libraries\System.Formats.Cbor\tests\System.Formats.Cbor.Tests.csproj -c Release /p:RuntimeConfiguration=Releasepassed: 2,651 tests on .NET 12 and 2,605 on .NET Framework 4.8.1, with no failures or skips.Performance
BenchmarkDotNet ShortRun on a Windows x64 Hyper-V VM (Xeon Platinum 8370C), using
net11.0CBOR assemblies on the locally built .NET 12 Release runtime. The benchmark reuses a reader to read 32-entry strict maps with byte-string keys and integer values.Both versions reported 0 B allocated per operation. The 128-byte-key case is about 19% slower in this run. These are short-run measurements; the smaller differences should not be treated as conclusive speedups.
Note
This pull request description was generated with GitHub Copilot.