Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Clean up JSON property lookup logic and add alternate key lookup support. - #103836

#103836
Merged
eiriktsarpalis merged 7 commits into
dotnet:maindotnet/runtime:mainfrom
eiriktsarpalis:json-alternate-dicteiriktsarpalis/runtime:json-alternate-dictCopy head branch name to clipboard
Jul 8, 2024
Merged

Clean up JSON property lookup logic and add alternate key lookup support.#103836
eiriktsarpalis merged 7 commits into
dotnet:maindotnet/runtime:mainfrom
eiriktsarpalis:json-alternate-dicteiriktsarpalis/runtime:json-alternate-dictCopy head branch name to clipboard

Conversation

@eiriktsarpalis

Copy link
Copy Markdown
Member

This PR:

  1. Adds span-based dictionary lookups to the JSON property binding logic.
  2. Cleans up, fixes a few coherency issues and adds commentary to the overall property lookup implementation.

I ran the benchmark suite and it appears that the change doesn't move the needle much performance-wise. The reason for that is that STJ uses an intermediate bespoke cache that does the heavy lifting when it comes to handling microbenchmark-like workloads.

@eiriktsarpalis eiriktsarpalis self-assigned this Jun 21, 2024
@eiriktsarpalis
eiriktsarpalis requested review from jozkee and krwq June 21, 2024 19:42
@eiriktsarpalis eiriktsarpalis added this to the 9.0.0 milestone Jun 21, 2024
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis
See info in area-owners.md if you want to be subscribed.

Comment thread src/libraries/System.Text.Json/src/System/Text/Json/JsonHelpers.cs
@eiriktsarpalis

Copy link
Copy Markdown
Member Author

@stephentoub would it be possible to take another look? Thanks.

Comment thread src/libraries/System.Text.Json/src/System/Text/Json/JsonHelpers.cs
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.