-
Notifications
You must be signed in to change notification settings - Fork 395
Avoid per-element patch-path allocations in C# collection serializers #11947
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
Merged
Jorge Rangel (jorgerangel-msft)
merged 31 commits into
main
from
copilot/fix-generated-collection-serializers
Sep 17, 2026
+1,219
−334
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
144a463
Initial plan
Copilot ef43b16
fix(http-client-csharp): skip irrelevant indexed patch path checks
Copilot fd88953
fix(http-client-csharp): guard nested collection patch path allocations
Copilot b283693
revert(http-client-csharp): undo nested collection patch guard follow-up
Copilot 06c4f8c
fix(http-client-csharp): preserve dotted patch property names
Copilot c267f75
fix(http-client-csharp): escape dotted patch paths
Copilot 92f3e81
fix(http-client-csharp): escape bracketed patch path segments
Copilot a4f240b
refactor(http-client-csharp): share patch path escaping helper
Copilot a13b331
test(http-client-csharp): cover escaped bracket patch paths
Copilot 0aff3b2
fix(http-client-csharp): clarify patch path segment escaping
Copilot 5a5313e
refactor(http-client-csharp): simplify patch path escaping
Copilot f4c39ef
test(http-client-csharp): cover simple patch path identifiers
Copilot 0dfa386
fix(http-client-csharp): escape braces in patch path templates
Copilot e3db771
revert(http-client-csharp): remove patch path escaping follow-up
Copilot 54bf7fc
fix(http-client-csharp): reuse nested collection patch guard
Copilot 8ccb6ac
fix(http-client-csharp): guard nested dictionary patch paths
Copilot 121ecea
refactor(http-client-csharp): share dictionary item serialization
Copilot a1b932d
fix(http-client-csharp): avoid unpatched item name reuse
Copilot 4127355
fix(http-client-csharp): guard root dictionary patch paths
Copilot af2b65e
fix(http-client-csharp): preserve special patch path names
Copilot 2660a00
fix(http-client-csharp): pick collision-safe JSON path quote delimiter
Copilot ee1effa
fix(http-client-csharp): eliminate dead if(false) patch branches in n…
Copilot cdb267f
Merge branch 'main' into copilot/fix-generated-collection-serializers
jorgerangel-msft 4f16ce3
refactor(http-client-csharp): remove standalone C# interpolation esca…
Copilot 7d7bcaf
refactor(http-client-csharp): remove special patch path escaping
Copilot 5b6c5a6
test(http-client-csharp): cover nested collection patch serialization
Copilot a4844ac
test(http-client-csharp): cover patched nested collections
Copilot e046d65
revert(http-client-csharp): remove out-of-scope JSON path escaping an…
Copilot 7fe4b32
rename unpatchedItem loop variable back to item per review feedback
Copilot 856a745
regen Sample-TypeSpec generated files to fix CI regen-check failure
Copilot 152be08
test(http-client-csharp): add allocation coverage for unpatched neste…
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
224 changes: 180 additions & 44 deletions
224
...ft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.Dynamic.cs
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.